通过命令行在SOCKS5代理上打开putty ssh连接

Ser*_*gey 5 windows ssh proxy putty

我试图通过命令行在SOCKS5代理上打开putty ssh连接.

putty.exe -P port -pw password username@host -nc proxyhost:proxyport
Run Code Online (Sandbox Code Playgroud)

此命令不起作用,我认为这是不正确的.我尝试了很多这个命令的变种,但是putty用户手册不包含必要的信息.

我试图连接到我的主机throw putty UI,它工作正常.

对于openSSH类似的命令看起来

ssh -o "ProxyCommand=nc -x proxyhost:proxyport %h %p" -p port username@host
Run Code Online (Sandbox Code Playgroud)

Bla*_*Bat 3

如果我是你,我会使用 Putty 创建一个“保存的会话”并通过命令行启动它:

putty.exe -load session_name

通过 PuTTY 界面创建“保存的会话”比使用命令行更容易。看起来您已经可以通过 PuTTY 界面运行它了。