Re: SSH Agent Forwarding Not Working

[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

 



> However, the forwarding doesn't seem to be actually working - "ssh -T
> git@xxxxxxxxxx" works locally, but not if I run it on the server
> (machine B). `ssh-add -l` prints fine locally, but prints "The agent
> has no identities" on the server.

it sounds like something on B is running a new ssh-agent process when
you log in.

when you ssh to B, is your $SSH_AUTH_SOCK owned by 'sshd' or
'ssh-agent'? if you've forwarded your agent, it should be owned by
sshd on the remote host.

this is good:

$ sudo lsof -n | grep $SSH_AUTH_SOCK
sshd       71286            pmoody   10u     unix 0xffff8802058a9400
     0t0  741054208 /tmp/ssh-9bmDCfYasv/agent.71286

vs:

$ eval `ssh-agent`
Agent pid 72317
$ sudo lsof -n | grep $SSH_AUTH_SOCK
ssh-agent  72317            pmoody    3u     unix 0xffff880031322800
     0t0  741071876 /tmp/ssh-tc6wDsKNfgFi/agent.72316
_______________________________________________
openssh-unix-dev mailing list
openssh-unix-dev@xxxxxxxxxxx
https://lists.mindrot.org/mailman/listinfo/openssh-unix-dev



[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux