PuTTY configuration equivalent to OpenSSH ProxyCommand

后端 未结 2 1335
执笔经年
执笔经年 2020-12-13 18:11

I\'m just trying to use PuTTY to get an SSH connection to my servers. These servers allow incoming SSH connection only from another specific server (\"MySshProxyingServer\"

相关标签:
2条回答
  • 2020-12-13 18:51

    Just in case you still use password for your jumphost is the option for that with an example.

    plink.exe %user@%proxyhost -pw %pass -P %proxyport -nc %host:%port
    
    0 讨论(0)
  • 2020-12-13 19:12

    The equivalent in PuTTY is "local proxy command". You can use the plink.exe with the -nc switch instead of the ssh with the -W switch:

    The "local proxy command" is:

    plink.exe %user@%proxyhost -P %proxyport -nc %host:%port
    

    An alternative is to open a tunnel via the "MySshProxyServer" first using another instance of PuTTY (or Plink).

    See for example:

    • How to create SSH tunnel using PuTTY in Windows?
    • My guide for tunneling SFTP/SCP session. It's for WinSCP, but just use PuTTY instead of WinSCP in section Connecting through the tunnel.
    0 讨论(0)
提交回复
热议问题