Situation
- I add a ssh-key to the chain using
ssh-add -K the_path
as user@local - I set up key forwarding as described here https://help.github.com/articles/using-ssh-agent-forwarding
- AllowAgentForwarding is enabled (local)
- ForwardAgent is not "no" in /etc/ssh_config (remote)
- echo "$SSH_AUTH_SOCK" delivers a tmp file (local)
- when I
ssh -vT git@bitbucket.com
as other@server then it logs in - When I run
ssh-add -L
as other@server then it adds the key.
Problem
- When I run
ssh-add -L
on root@server then it says "Could not open a connection to your authentication agent." - When I run
ssh -vT git@bitbucket.com
as root@server then it does not log in
I hardly don't know where to fix that or what the problem is. Can someone help?