Putty autologin with port?


0

我一直试图弄清楚如何制作一个Putty自动登录快捷方式,但如果它使用自定义端口,我无法弄清楚如何使用它。

putty.exe -ssh root@1.2.3.4 -pw password

2
我建议你是否要设置SSH自动登录,至少设置一个公钥/私钥对,而不是把密码放在快捷方式中。
2016年

Answers:


1

腻子用户手册提供了一些帮助:

-P选项用于指定要连接的端口号。

要连接到端口2222上的SSH服务器,您将使用:

putty.exe -ssh -P 2222 root@1.2.3.4 -pw password
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.