SSH转发

  • 第一步启动agent
    eval ssh-agent
  • 第二步管理秘钥
    添加ssh-add /xxx/ssh/id_rsa_3
    删除ssh-add -d /xxx/ssh/id_rsa_3
    查看ssh-add -l
  • 第三步SSH登录
    ssh -A -i ~/xxx/id_rsa_3 username@login.baoleiji.com -p1046
    -A Enables forwarding of the authentication agent connection
    -i Selects a file from which the identity (private key) for public key authentication is read
最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容