SSH connection failed: connect ECONNREFUSED

Published: · LastMod: April 07, 2024 · 169 words

Shell登录报 SSH connection failed: connect ECONNREFUSED 🔗

通过VNC登录云服务器实例 🔗

找到登录入口

image.png

找到vnc登录入口

image.png

查看sshd服务状态 🔗

1
netstat -tnlp | grep sshd

如果服务未启动

1
systemctl start sshd

查看sshd状态

1
systemctl status sshd

看到有这么一个错误

1
bad configuration option: CASignatureAlgorithms

找到/etc/ssh/sshd_config

编译这个文件

1
vim /etc/ssh/sshd_config

找到CASignatureAlgorithms对应字符注释

重启sshd服务

1
systemctl restart sshd