winSPC远程连接阿里云ECS实例出现错误:Disconnected:No supported authentication methods available
问题原因:ssh链接未允许远程密码认证导致
解决办法:
vim /etc/ssh/sshd_config
将PasswordAuthentication no
更改为PasswordAuthentication yes
按【ESC】输入保存::wq
再输入命令重启服务service sshd restart
例外:
在云服务器 ECS Linux CentOS 7 下重启服务不再通过 service 操作,而是通过 systemctl 操作。
首先:service sshd restart // 查看是否启动,如图1:则已启动
没有启动:systemctl start sshd.service
重启:systemctl restart sshd.service
设置自启systemctl enable sshd.service