Shell登录报 SSH connection failed: connect ECONNREFUSED

350 阅读1分钟

Shell登录报 SSH connection failed: connect ECONNREFUSED

通过VNC登录云服务器实例

找到登录入口

image.png

找到vnc登录入口

image.png

查看sshd服务状态

netstat -tnlp | grep sshd

如果服务未启动

systemctl start sshd

查看sshd状态

systemctl status sshd

看到有这么一个错误

bad configuration option: CASignatureAlgorithms

找到/etc/ssh/sshd_config

编译这个文件

vim /etc/ssh/sshd_config

找到CASignatureAlgorithms对应字符注释

重启sshd服务

systemctl restart sshd