1
vote
1answer
4k views

How to enable key forwarding with ssh-agent?

I've used the ssh-agent from oh-my-zsh to manage my SSH key. So far, so good, i only have to type the passphrase for my private key once when I start my shell and public key authentication works ...
2
votes
3answers
3k views

What part of SSH forwarding sets up SSH_AUTH_SOCK?

I'm trying to get SSH agent forwarding working from my Mac to a Debian server. On my Mac, I have verified that I have: SSH_AUTH_SOCK exists ssh-add -l shows my identities ./ssh/config has settings ...
55
votes
8answers
20k views

ssh-agent forwarding and sudo to another user

If I have a server A into which I can login with my ssh key and I have the ability to "sudo su - otheruser", I lose key forwarding, because the env variables are removed and the socket is only ...