Questions tagged [ssh-agent]

144 questions
1
vote
0 answers

Is it possible to chain ssh-agent forwarding through multiple hops?

Suppose I have 4 machines, local, dmz, remote1, and remote2. I want to ssh from local to dmz then into remote1 and then scp a file from remote1 to remote2. Can I use ssh-agent forwarding to allow me to do this without managing any public/private…
Mike Deck
  • 183
  • 1
  • 1
  • 7
1
vote
1 answer

How to get an Ubuntu root account to forward ssh keys as the forwarding machine

UPDATE: the whole thing described below works fine for non-root accounts on the remote machine. That is, this works: anderson@client -> nonroot@remote -> anderson's-ssh-key@github.com This does not work, however: anderson@client -> root@remote ->…
Scott A
  • 111
  • 4
1
vote
2 answers

Be able to pull from git without password on login or just run keychain which does it for me

I need to pull from Github all the time and I have a passphrase, but it's a pain, so I typically run... ssh-agent bash ssh-add ~/.ssh/id_rsa git pull ... And that works for the session, but even after I logout, I would…
TheFrack
  • 191
  • 1
  • 2
  • 12
1
vote
1 answer

Can one config LDAP to accept auth from ssh-agent instead of from Kerberos?

[This question is not about getting your LDAP password to authenticate you for SSH logins. We have that working just fine, thank you :-) ] Let's suppose you're on a Linux network (Ubuntu 11.10, slapd 2.4.23), and you need to write a set of utilities…
Alex North-Keys
  • 541
  • 4
  • 6
1
vote
1 answer

sshfs automount with password-enabled ssh key and ssh-agent in ubuntu

I currently set up sshfs automount on ubuntu per this thread. It's nice because of the network up and down scripts. The benefit comes at a cost: it requires passwordless ssh via an ssh key. I was wondering if anyone had any advice on how to…
Vinh Nguyen
  • 143
  • 5
1
vote
2 answers

SSH client not showing prompt after successful login

I'm having problems with my SSH client on Ubuntu 10.10. When I switch on my computer and open a Terminal and execute the command ssh user@host, it gives me a password prompt after which I enter the right password, I then get a prompt to execute my…
user431949
  • 63
  • 1
  • 1
  • 4
1
vote
1 answer

Issues with ssh-add

I am attempting to add an ssh key using ssh-add. Upon running ssh-add ~/.ssh/insertkeynamehere I am prompted with: Could not open a connection to your authentication agent. After doing some research it would appear as if this is because my…
user380166
  • 13
  • 4
1
vote
3 answers

probems using ssh from cron

I am attempting to automate a script that executes commands on remote machines via ssh. I have public key authentication setup between the machines using ssh-agent. The script runs fine when executed from the command prompt. I suspect my problem is…
Travis
1
vote
0 answers

ssh through a bastion machine works on someone else's desktop but not my own

I have to ssh into a bastion (jump) server in order to get to the final server. On the jump server, my .ssh/config says: Host * ForwardAgent yes My co-worker uses PuTTy and Pageant. When I use a putty shell to connect from his desktop to the final…
1
vote
1 answer

The ssh-agent process is not visible to the user who created it but is visible to root

I have adopted the following snippet from Visual Studio Code's documentaion to create an ssh-agent on login: if [ -z "$SSH_AUTH_SOCK" ]; then # Check for a currently running instance of the agent RUNNING_AGENT="`ps -ax | grep 'ssh-agent -s' |…
Matt
  • 111
  • 4
1
vote
0 answers

How to send different explicit ssh identities *from agent* to same server?

Some services like github and gitlab distinguish between users based on the SSH identity sent. One way to do this is to have different host aliases in ~/.ssh/config: Host user1-github HostName github.com User git IdentityFile…
cdleonard
  • 123
  • 3
1
vote
1 answer

Reconnect automatically to a disconnected ssh session

I am new to this community , I am working on my iot project in which my microcontroller is working as a server, taking data and executing request. My client is end device (mobile,tablet) and I am connecting through SSH. The problem appears if…
adil kampoo
  • 11
  • 1
  • 2
1
vote
2 answers

Ansible not honouring `ssh-agent`?

I seem to be having a problem where Ansible isn't using my SSH agent cache. I've run the following: eval `ssh-agent` ssh-add /tmp/key Then I successfully log into one of the hosts from my inventory just fine: ssh -i /tmp/key ec2-user@1.2.3.4 When…
RandomInsano
  • 451
  • 1
  • 5
  • 19
1
vote
0 answers

SSH agent forwarding not working on LSF when using BSUB

At my institute we have a cluster that runs LSF. Via this cluster, I want to connect to other computers/servers using Agent Forwarding. This works fine when I am on the login node, however when I am working on an interactive shell from a compute…
woos
  • 11
  • 2
1
vote
1 answer

too many ssh-agent process per user on several servers

Several users seem to have problems with the usage of ssh-agent in their login environment. sri for instance has 1295 of them running on login02. And many other users are having same issue. I am seeing the same problem on other machines, and with…
gokam
  • 13
  • 7