当前位置:首页 > 旅游攻略 > xshell 不能链接腾讯云服务器

xshell 不能链接腾讯云服务器

问题描述:

Xshell不能链接腾讯云的服务器,只能使用腾讯云的VNC

  

解决办法:

vi /etc/ssh/sshd_config
保存退出,重启服务
开启 sshd 服务,执行命令:sudo service sshd start
停止SSH服务命令(service sshd stop)
重启SSH服务命令(service sshd restart)
查看22端口是否被监听:netstat -nltp|grep 22
如若报错:Failed to start sshd.service: Unit sshd.service not found
则执行
systemctl enable ssh.service
service sshd start


 

发表评论

访客

◎欢迎参与讨论,请在这里发表您的看法和观点。