If you can not access into your server via ssh, and said : Connection refused
First step check your firewall whether the firewall has allowed ssh port ?
If you don’t have any firewall configuration, check your ssh server status
1 2 |
# /etc/init.d/sshd status openssh-daemon is stopped |
and then checking log at
1 |
/var/log/secure |
if there is logs like the following errors.
1 |
vps sshd[18431]: fatal: daemon() failed: No such device |
Fixed by :
1 2 |
# rm -f /dev/null # mknod /dev/null c 1 3 |
Restart your ssh server
1 2 |
# /etc/init.d/sshd start Starting sshd: [ OK ] |