Problems with SSH ProxyCommand

本秂侑毒 提交于 2019-12-05 21:38:54

The problem seems to be, that the proxy tries to login with my local rsa_key and not with the key stored on the proxy.

Yes. It does. It is by design. You don't want to copy private keys over to the proxies. Proxy command will always authenticate from your local host.

There are twa ways out:

  • Copy the key to your local host and configure it to be used.

  • Don't use ProxyCommand and do the simple ssh:

    ssh -t proxy ssh host
    

    it will use the authentication from the second host

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!