美文网首页
ssh agent forward

ssh agent forward

作者: auguszou | 来源:发表于2017-05-23 22:20 被阅读0次
  1. Start ssh-agent
#local
eval `ssh-agent -s`
  1. Add identity
ssh-add
  1. Configure ssh forwarding
# local
cat "
Host github.com
    ForwardAgent yes
" >> .ssh/config
  1. Add public key to server2
ssh-copy-id user@server2
  1. SSH login server2 in server1 with passwd
#first, pls login server1, then execute follow command 
ssh -T user@server2 #yeah!, you can login.

相关文章

网友评论

      本文标题:ssh agent forward

      本文链接:https://www.haomeiwen.com/subject/jkogxxtx.html