≡ Menu

Can not connect into server via ssh : Connection refused

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

/var/log/secure

if there is logs like the following errors.

vps sshd[18431]: 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  ]
{ 0 comments… add one }

Leave a Comment

CAPTCHA
*