SSH Agent Forwarding Not Working

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

 



Hi,

I know this might be the most asked question, so I've done anything
possible to troubleshoot the problem myself, but still, my SSH Agent
Forwarding is not working for me.

The best troubleshooting guide that I found, and also the one I've
been using, is the ssh forwarding guide on github -
https://help.github.com/articles/using-ssh-agent-forwarding

I've checked all things there, yet it is just still not working. E.g.,

echo "$SSH_AUTH_SOCK" shows correctly on the server and my local
machine, and I have checked both .ssh/config and /etc/ssh_config and
/etc/ssh/sshd_config on the server (machine B) - they're all set up
correctly.

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.

I've tried openssh-server with both Ubuntu & Debian,

$ apt-cache policy openssh-server
openssh-server:
  Installed: 1:7.6p1-4
  Candidate: 1:7.6p1-4
  Version table:
 *** 1:7.6p1-4 500
        500 http://archive.ubuntu.com/ubuntu bionic/main amd64 Packages

$ apt-cache policy openssh-server
openssh-server:
  Installed: 1:7.4p1-10+deb9u3
  Candidate: 1:7.4p1-10+deb9u3
  Version table:
     1:7.7p1-2 50
         50 http://cdn-fastly.deb.debian.org/debian unstable/main amd64 Packages
 *** 1:7.4p1-10+deb9u3 500

and both are not working.

In the end, this is what I get to ssh from A to C:

$ ssh -T git@xxxxxxxxxx
Welcome to GitLab, @myid!

this is what I get to ssh from A to B, then B to C, with my local ~/.ssh folder

$ ssh -T git@xxxxxxxxx
Enter passphrase for key ...

the full `ssh -vvvT git@xxxxxxxxxx` is available at
https://pastebin.com/did1EsPe (via Debian as B, without my local ~/.ssh folder)
or,
https://superuser.com/questions/840340/ssh-agent-forwarding-not-working-even-when-using-ssh-a
(via Ubuntu as B)

How to troubleshoot the problem from here?
Please help. thx.
_______________________________________________
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