I'm trying to configure Capistrano for the webapp I'm working on, and I'm having trouble sending an agent to work.
Here is my ~/.ssh/config :
Host rs Hostname <ip of my server> ForwardAgent yes User root
And I donβt think that the default settings override anything, since ForwardAgent is never mentioned there (except for the commented line).
Here is what happens when I usually use SSH:
$ ssh -v deploy@ <server> OpenSSH_6.2p2, OSSLShim 0.9.8r 8 Dec 2011 debug1: Reading configuration data /Users/ulyssecarion/.ssh/config debug1: Reading configuration data /etc/ssh_config debug1: /etc/ssh_config line 20: Applying options for * debug1: /etc/ssh_config line 102: Applying options for * -- snip -- debug1: channel 0: new [client-session] debug1: Requesting no-more-sessions@openssh.com debug1: Entering interactive session. debug1: Sending environment. debug1: Sending env LANG = en_US.UTF-8 Welcome to Ubuntu 12.04.3 LTS (GNU/Linux 3.8.0-29-generic x86_64)
If I force SSH to allow the forwarding agent with the -A flag, I can make it work:
$ ssh -Av deploy@ <server> OpenSSH_6.2p2, OSSLShim 0.9.8r 8 Dec 2011 debug1: Reading configuration data /Users/ulyssecarion/.ssh/config debug1: Reading configuration data /etc/ssh_config debug1: /etc/ssh_config line 20: Applying options for * debug1: /etc/ssh_config line 102: Applying options for * -- snip -- debug1: channel 0: new [client-session] debug1: Requesting no-more-sessions@openssh.com debug1: Entering interactive session. debug1: Requesting authentication agent forwarding.
(Note that in the logs of the second example there is an additional line indicating that the forwarding agent is requested.)
Is this normal, or am I doing something wrong? Thanks in advance!
ssh
ucarion
source share