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
# /etc/init.d/sshd status openssh-daemon is stopped
and then checking log at
if there is logs like the following errors.
vps sshd: fatal: daemon() failed: No such device
Fixed by :
# rm -f /dev/null # mknod /dev/null c 1 3
Restart your ssh server
# /etc/init.d/sshd start Starting sshd: [ OK ]