Home ›
SSH agent forwarding SSH agent forwarding
Submitted by Benjamin Melançon on September 18, 2009 - 2:23pm
See http://data.agaric.com/node/107 for the right way.
For having your public key somehow let you be able to use your repositories and stuff. It's good magic.
.ssh forwarding agent forward ssh-agent
goes in /home/username/.ssh/config
An example:
host sciencecollab
ForwardAgent yes
hostname 123.456.789.250
user ben
identityfile /Users/ben/.ssh/id_rsa
compression yes
protocol 2
port 22
host gmixdev
ProxyCommand ssh ben@server2.example.com /usr/bin/netcat dev.example.org 22
User set
The other thing is a totally different example, but cool for accessing one computer via another.
You can make sure ssh-agent is running with:
ssh-agent