Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [ssh-agent]

ssh-agent is a single sign-on mechanism for SSH that is included in the OpenSSH software. Use this tag for questions on how to configure and use ssh-agent.

2
votes
2answers
797 views

SSH client not trying my keys in ssh-agent

I'm on OS X Yosemite 10.10.5, and my SSH client is behaving in a way I can't explain or resolve. My goal is simply to connect to a server with: ssh -A core@12.34.56.78 When I add -v to this, I can ...
1
vote
2answers
948 views

Why can't I authenticate to GitHub?

my_username@my_username-laptop MINGW64 ~ (master) $ ssh-keygen -t dsa Generating public/private dsa key pair. Enter file in which to save the key (/c/Users/my_username/.ssh/id_dsa):Enter Enter ...
0
votes
2answers
40 views

How to restart ssh-agent without relogin

I accidentally killed my ssh-agent, how do I restart it without having to reconnect ? I tried this but it does not work : $ eval $(ssh-agent -s) Agent pid 8055 Then, I open a new Gnome terminal ...
0
votes
2answers
76 views

Automatically login to an ssh-agent session in a non-user shell

My team shares a user account via a non-user shell on a few systems for reasons beyond our control. We all move our passphrase protected private keys to the share'd users ~/.ssh directory. We normally ...
0
votes
2answers
1k views

Unable to establish an SSH tunnel using Redis Desktop Manager

I am trying to connect to an Elasticache Redis Server via an AWS Ubuntu instance and using an ssh tunnel. When I try to configure Redis Desktop Manager to connect via an ssh tunnel and provide ...
4
votes
1answer
782 views

Why is my SSH authentication socket different from the man pages?

These two entries of man ssh-agent describe the SSH authentication socket: $TMPDIR/ssh-XXXXXXXXXX/agent.<ppid> UNIX-domain sockets used to contain the connection to the authentication agent....
3
votes
1answer
532 views

How to use ssh-agent for offering host specific keys from ~/.ssh/config file and manage the passphrases?

I configured different hosts and keys for them in ~/.ssh/config file. But, to manage the passphrases of different keys, I seek help from ssh-agent by adding the keys to it, via ssh-add command. Now ...
3
votes
1answer
542 views

Use specific key in a forwardagent ssh call?

when I ssh to a server I can use a few options to specify which key is used, for example: ssh -o identityfile=~/.ssh/cool -o identitiesonly=yes serverA This prevents too many tries, which could end ...
2
votes
1answer
108 views

Solution for private keys on a remote machine?

I have to manage several servers, with services that can be cron, and integration jobs, deployments, backups. The common thing with all of these, is that they sometimes require access to other servers....
1
vote
1answer
455 views

Loading OpenSSH certificate into ssh-agent without the private key

I'm storing my ssh keys on a yubikey and hence I don't have any private key file on disk. This gives me a problem when I'm also using OpenSSH Certificates to authenticate. If I would like to bring the ...
1
vote
1answer
177 views

NX on a centos server and connect a windows 7

I have a centOS 6.5 server cat /etc/*elease CentOS release 6.5 (Final) I tried to install the NX on it using this document https://wiki.centos.org/HowTos/FreeNX This is how I install it because the ...
1
vote
1answer
141 views

More than one ssh-agent

I've recently installed Lubuntu and openssh-server. I can't understand why do I have two ssh-agent process now running in my computer: user1@machine:~$ ps -auwxxx | grep ssh root 863 0.0 0.1 ...
0
votes
1answer
28 views

ssh-add -l does not show the location of the SSH key(s)

When I run ssh-add -l, it does not show the location of the SSH key(s). It outputs the following: 4096 SHA256:bBMtB9wL6RXRWhvx5M+LDox6A2gq61CDtZN9F4bi3Gw masoud@x.y (RSA) 2048 SHA256:QbCO5y5SX+CSHd6++...
0
votes
1answer
48 views

ssh-agent for nested tmux session

sessionA sessionB I start tmux in first window of sessionA but using this command to wake it: ssh-agent tmux that I expect new nested sessionB will have its own ssh-agent listen for it. And ...
0
votes
1answer
357 views

I want to gather the host keys but ssh-keyscan command is not found on my linux. Anyway to achieve the same with some other commands

I want to gather the host keys but ssh-keyscan command is not found on my linux. Anyway to achieve the same with some other commands without adding this command explicitly. I am running with Wind ...
0
votes
1answer
286 views

Ansible: running from virtualenvwrapper with pip installation

I'm trying to test ansible with a "pip" installation of ansible in a virtualenv of python managed by virtualenvwrapper. However, I am having problems to use the ssh-agent and the SSH keys: (ansible)$ ...
4
votes
0answers
1k views

Could not add card - Agent refused operation

I am on Ubuntu 16.04 and trying to add the certs on my CAC card using the ssh-add commands with no luck. ssh-add -s /usr/local/lib/opensc-pkcs11.so Enter passphrase for PKCS#11: Could not add card "/...
3
votes
0answers
966 views

How do I combine SSH agent forwarding and gpg-agent?

I have an ssh-agent running on my local machine. I connect to a remote machine via SSH, with agent forwarding enabled. On that remote there is an instance of gpg-agent running. I know that recent ...
2
votes
0answers
267 views

How is my ssh key unlocked without ssh-agent? And how do I fix that?

I have an SSH key that I use almost every day and I recently noticed that I haven't had to unlock it in a long while. I don't always shut down my computer and so it is fairly common that ssh-agent is ...
2
votes
0answers
83 views

Using lpass to unlock an ssh key

I'm using the Lastpass CLI (lpass) and want to have it give the passphrase for a private key direct to add-ssh on login as part of .bashrc . the net effect is that I login to Lastpass on when I start ...
2
votes
0answers
190 views

Run ssh-agent 24/7 using keychain?

I have a Node.js script that requires ssh-agent to be running 24/7 on my Ubuntu server. I installed keychain and put eval 'keychain --eval id_rsa into my ~/.bash_profile, but that only runs when I ssh ...
1
vote
0answers
41 views

SSH server accepts key, but signing fails

I have recently tried migrating from a standard ssh public key setup to managing my keys with GPG. Following instructions on my distribution's wiki, I set up ssh to use gpg-agent instead of the ...
1
vote
0answers
42 views

Debian 9 - sign_and_send_pubkey

I decided to start switching my machines over from Ubuntu to pure Debian but I'm currently stuck at a hurdle with configuring my git repositories related to ssh. I created a new key and added it to ...
1
vote
0answers
1k views

ssh stuck after showing local version

I am trying to ssh to a different system from my Ubuntu, but it got stuck after this log root@akash:~# ssh -vvv root@192.168.2.219 OpenSSH_7.2p2 Ubuntu-4ubuntu2.2, OpenSSL 1.0.2g 1 Mar 2016 debug1: ...
1
vote
0answers
45 views

Save IP in remote host every time connection is up (as non-root-user)

I have a dynamic local Lan IP at work (temporarily), but in order to connect from home, I ssh to the host A (static IP) and from there to my machine. However, since the IP changes, I would like to ...
1
vote
0answers
36 views

ssh-agent terminating on network change

My work computer is a painfully out of date Ubuntu 16.04 machine. I have it configured such that that lightdm invokes ssh-agent (not gnome-keyring-daemon) and ssh-agent invokes my session. This is not ...
1
vote
0answers
272 views

git ssh alias not working unless I add the key to ssh-agent (OSX)

I added a ssh alias to use a different key-pair for a certain domain. The key does not have a passphrase. I had followed the directions at https://confluence.atlassian.com/bitbucket/configure-...
1
vote
0answers
373 views

ssh-agent on CentOS 6.5 keeps “disabling” itself

I recently installed git on my CentOS 6.5 system. During the process I setup a key/pair for GitHub so I don't have to enter a password for every git process. I did this by adding the rsa file to ssh-...
0
votes
0answers
12 views

Run a section of AWS userdata as ec2-user

I am trying to pull some git repos in my EC2 userdata, but want to pull them as ec2-user rather than root. As I dont want the private key on the disk I am using ssh-agent to load a key from Parameter ...
0
votes
0answers
27 views

ssh config with ProxyCommand, need to enter passphrase for ssh key on intermediate server

So in this case, we have 3 machines, A (me), B (intermediate), and C (goal). I can ssh from A -> B no problem. B -> C also works, but the key on B is protected by a passphrase. I want to have an ...
0
votes
0answers
140 views

How to start a systemd service running in an ssh-agent?

The answer to How to start and use ssh-agent as systemd service? gets us a running ssh-agent. How can you write another systemd service file so that its process runs under that ssh-agent? In ...
0
votes
0answers
48 views

Ubuntu 16.04 - ssh-related commands open a GUI window to ask me for my SSH key password

Whenever I use commands like ssh user@server on the command line, I am not asked directly in the command line for my ssh key password, but in a new window (GUI). However, if I execute eval $(ssh-agent)...
0
votes
0answers
147 views

How to ssh-add elliptic curve key?

I'm trying to use a newly generated elliptic curve key with git version control for GitLab. I am using a Xubuntu 16.04. My OpenSSH version is: OpenSSH_7.2p2 Ubuntu-4ubuntu2.4, OpenSSL 1.0.2g 1 Mar ...
0
votes
0answers
170 views

Agent forwarding and `sudo` vs `sudo -i`

Under an ssh -X -A localhost session, sudo xeyes opens the eyes but sudo -i xeyes does not. ~$ sudo -i xeyes X11 connection rejected because of wrong authentication. What extra step is needed in ...
0
votes
0answers
100 views

ssh-add: add_file: key_cert_copy: invalid argument

I get this error when running ssh-add. The command seems to work after this, but the return code is 127 (so a script runs into an error at this point). Does anyone recognize the error? Google doesn't ...
0
votes
0answers
3k views

How to restart ssh server / sshd on Linux?

I am trying to restart the ssh server on my server which is running Fedora Cloud. I have tried the method here http://www.cyberciti.biz/faq/howto-restart-ssh/ (# service sshd restart) and get Failed ...