2013年11月11日 星期一

Setting ssh private key forwarding .

設定 private key 透過 ssh forwarding 到其他 server .

例如 A ->  B  ->  C  那麼 A and B 都需要設定.


Make sure ssh forwarding works   (確定ssh forwarding works )
$ eval `ssh-agent -s`

# ssh-add
#ps aux | grep ssh                 
Ensure ssh-agent is running

#vim ~/.ssh/config 
加入下列兩行:

ServerAliveInterval 90
ForwardAgent yes

【下列文章您可能也有興趣】

沒有留言: