Able to login in WHM but not able to login SSH
Hello,
We have a dedicated server from GoDaddy, and we are able to login in WHM but not able to login through SSH with same credentials.
Also the Magento1.9 is not working on this server. Our hosting server provider not helping us and they clearly mentioned that they are unable to help.
Is there anyone who can help us please.
Regards,
Tarak Nath
-
we are able to login in WHM
Are you logging into WebHost Manager using root user? This thread may be of some use to you: Solved: How do I get root access on my server? - GoDaddy Community0 -
Are you logging into WebHost Manager using root user?
Yes, we are able to logging into WHM using the root user. I can confirm you that we are not in VPS/Shared/Reseller. This is our brand new dedicated server. Regards, Tarak Nath0 -
I can confirm you that we are not in VPS/Shared/Reseller.
Assuming the firewall has the correct ports open, and your sshd_config (if edited) is edited correctly, you might need to speak with GoDaddy to ask about this. How to Secure SSH - cPanel Knowledge Base - cPanel Documentation0 -
Thank you for your reply. But GoDaddy is not helping us. We are very disappointed :( 0 -
In your WebHost Manager, top left search box, search for the word Terminal and open result. Does that work for you? 0 -
and if above works get the SSH port grep Port /etc/ssh/sshd_config and see if it open in the firewall iptables -L 0 -
Hello, Sorry for the late reply as I was in Christmas holiday. Yes, I am able to open the terminal in the WHM and the below are the output: ============== [root@server-hostname ~]# grep Port /etc/ssh/sshd_config #Port 22 #GatewayPorts no [root@server-hostname ~]# netstat -tulnp Active Internet connections (only servers) Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp 0 0 0.0.0.0:2079 0.0.0.0:* LISTEN 1525/cpdavd - accep tcp 0 0 0.0.0.0:2080 0.0.0.0:* LISTEN 1525/cpdavd - accep tcp 0 0 0.0.0.0:993 0.0.0.0:* LISTEN 1235/dovecot tcp 0 0 0.0.0.0:2082 0.0.0.0:* LISTEN 1467/cpsrvd (SSL) - tcp 0 0 127.0.0.1:579 0.0.0.0:* LISTEN 1517/cPhulkd - proc tcp 0 0 0.0.0.0:2083 0.0.0.0:* LISTEN 1467/cpsrvd (SSL) - tcp 0 0 0.0.0.0:995 0.0.0.0:* LISTEN 1235/dovecot tcp 0 0 0.0.0.0:2086 0.0.0.0:* LISTEN 1467/cpsrvd (SSL) - tcp 0 0 0.0.0.0:2087 0.0.0.0:* LISTEN 1467/cpsrvd (SSL) - tcp 0 0 0.0.0.0:3306 0.0.0.0:* LISTEN 1198/mysqld tcp 0 0 0.0.0.0:587 0.0.0.0:* LISTEN 1271/exim tcp 0 0 0.0.0.0:110 0.0.0.0:* LISTEN 1235/dovecot tcp 0 0 127.0.0.1:783 0.0.0.0:* LISTEN 14898/spamd child tcp 0 0 0.0.0.0:2095 0.0.0.0:* LISTEN 1467/cpsrvd (SSL) - tcp 0 0 0.0.0.0:143 0.0.0.0:* LISTEN 1235/dovecot tcp 0 0 0.0.0.0:2096 0.0.0.0:* LISTEN 1467/cpsrvd (SSL) - tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 1308/httpd tcp 0 0 127.0.0.1:7984 0.0.0.0:* LISTEN 923/java tcp 0 0 0.0.0.0:465 0.0.0.0:* LISTEN 1271/exim tcp 0 0 0.0.0.0:21 0.0.0.0:* LISTEN 1327/pure-ftpd (SER tcp 0 0 :53 0.0.0.0:* LISTEN 748/named tcp 0 0 127.0.0.1:53 0.0.0.0:* LISTEN 748/named tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 1028/sshd tcp 0 0 127.0.0.1:8984 0.0.0.0:* LISTEN 923/java tcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN 1271/exim tcp 0 0 127.0.0.1:953 0.0.0.0:* LISTEN 748/named tcp 0 0 0.0.0.0:443 0.0.0.0:* LISTEN 1308/httpd tcp 0 0 0.0.0.0:2077 0.0.0.0:* LISTEN 1525/cpdavd - accep tcp 0 0 0.0.0.0:2078 0.0.0.0:* LISTEN 1525/cpdavd - accep udp 0 0 :53 0.0.0.0:* 748/named udp 0 0 127.0.0.1:53 0.0.0.0:* 748/named ============== Regards, Tarak Nath 0 -
Please find the attached txt file for actual format of output. 0 -
LISTEN 1028/sshd 0 -
LISTEN 1028/sshd
Its means sir ? Please note that we are able to connect SSH through any cPanel's user & password using the default port 22.0 -
never mind entered in error (incomplete) your ssh is on port 22 0 -
Hello, Yes, we tried with port 22 only. Regards, Tarak Nath 0 -
do you have CSF firewall installed? Is port 22 blocked maybe ? 0 -
Sounds like root login via SSH is disabled, which is fairly normal. Confirm this with grep PermitRootLogin /etc/ssh/sshd_config
...to which I"d expect a response as follows:PermitRootLogin no
Usually you"d use one of your cPanel accounts and add that account to the Wheel user group, then SSH in as that user and use sudo or su in terminal to elevate from that user to root. See - Removed -0 -
@keat63, CSF firewall not installed yet. @APatchworkBoy, Below is the output: =========== [root@serverhostname ~]# grep PermitRootLogin /etc/ssh/sshd_config #PermitRootLogin yes # the setting of "PermitRootLogin without-password". PermitRootLogin no =========== 0 -
Understand, Thank you so much :) 0
Please sign in to leave a comment.
Comments
17 comments