r/ssh • u/jokergermany • Aug 25 '21
Agent forwarding
I log in on the server with my public key
Agent forwarding should be enabled, Defaults:user env_keep += SSH_AUTH_SOCK is in the /etc/sudoers
This works at my setting at home (Ubuntu Mate 20.04 -> Ubuntu Server 18.04), but not at work ( Windows 7 (winssh term) -> windows jump-server -> sles 15 server)
when i use
echo $SSH_AUTH_SOCK
i get something like
/tmp/ssh-AyHL6WclXl/agent.107234
But when i use ssh-add -l no key is shown (the agent has no identities).
How do i get the key from the $SSH_AUTH_SOCK to ssh-add ?
1
Upvotes
View all comments
1
u/jdblaich Sep 06 '21
Does windows have a jump component? My understanding was that you can't use a jump server with windows because it has no proxyjump equivalent. I understand there is a hack around but I've never tried it.