Putty - 自动关闭身份验证

Putty - Automatically closes on authentication

我在 Windows 7 机器上。我正在使用 Putty.exe 可执行文件连接到我的远程机器。我输入正确的凭据,然后单击“打开”。控制台弹出以下内容,并在没有错误或警告的情况下关闭。

如何让它发挥作用?

您所描述的是尝试使用 "ftp only" 用户(未授权 shell 访问)登录 shell。

Go to Control Panel -> Users -> Manage Users, select the "Edit" link adjacent to the user you are having trouble with, and make sure that the radio button for "shell" is selected. Submit the form, and wait for it to take effect (usually a matter of a few minutes).

更改生效后,您应该可以远程登录(但请不要使用远程登录,因为它不安全)或 ssh 进入 shell 没有问题(假设 user/pass是正确的)。

检查 Putty 设置:连接 > SSH > 远程命令。

尝试调整或简单地删除远程命令,看看它是否有助于解决问题。