关于Xshell链接错误:Could not connect to '' (port 22): Connection failed.

对于新买的window服务器,没有经过某些处理和操作时,用Xshell链接时,可能会出现的错误Connection failed。

首先需要在设置应用中,打开应用和功能,点击管理可选功能,添加Open SSH 客户端和服务器端。之后通过命令窗口输入net start sshd,即可开启ssh服务。(PS:关闭ssh服务是net stop sshd)。

操作如下:

关于Xshell链接错误:Could not connect to '' (port 22): Connection failed.
关于Xshell链接错误:Could not connect to '' (port 22): Connection failed.
关于Xshell链接错误:Could not connect to '' (port 22): Connection failed.
关于Xshell链接错误:Could not connect to '' (port 22): Connection failed.
关于Xshell链接错误:Could not connect to '' (port 22): Connection failed.
关于Xshell链接错误:Could not connect to '' (port 22): Connection failed.

参考:https://www.cnblogs.com/silence22/p/11573267.html