0 votes
asked by (6.1k points)

1 Answer

0 votes

cPanel server is'nt accessible vis ssh. We have tried to disabled the default port using steps :

https://SERVER_MAIN_IP:2087/scripts2/doautofixer?autofix=safesshrestart

Still not able to SSH to server.

In that case, you will have to request Data Center to attached a KVM for your server and check the status for sshd as follows.

root@server~]#/etc/init.d/sshd status

openssh-daemon is stopped

root@server~]#rm -f /dev/null

root@server~]#mknod /dev/null c 1 3

After these the permission should look like these.

root@server~]#ls -lh /dev/null

crw-r--r-- 1 root root 1, 3 Apr 23 19:11 /dev/null

After this try to start the sshd service.

root@server~]#/etc/init.d/sshd start

Starting sshd:                                             [  OK  ]

root@server~]#/etc/init.d/sshd status
openssh-daemon (pid  15840) is running...

Done.

 

answered by (6.1k points)
...