Portal Home > Knowledgebase > Articles Database > can login via KVM but not ssh/putty


can login via KVM but not ssh/putty




Posted by khrage, 09-08-2013, 12:35 AM
i can login to my dedi via KVM but when i try to login via putty the password does not work. Any ideas? My host said gss is enabled and preventing me from loging in. Anyone know the commands to fix it? (host cant do it since its unmanaged)

Posted by UnfinishedSentenc, 09-08-2013, 01:22 AM
Few things to try for troubleshooting purposes: iptables -P INPUT ACCEPT iptables -X iptables -F setenforce 0 nano /etc/ssh/sshd_config and check that port = 22 and PasswordAuthentication = yes

Posted by Hannan, 09-08-2013, 02:22 AM
Ip configured correctly? can ping it?

Posted by khrage, 09-08-2013, 03:22 AM
none of those commands come up. Im using centOS 6. sorry forgot to mention that. yep

Posted by StealthyHosting, 09-08-2013, 03:41 AM
What do you mean by "none of those commands come up" all those commands should work on an out of box centos 6 install. post us "uname -a".

Posted by net, 09-08-2013, 04:22 AM
Moved > Hosting Security and Technology .

Posted by UnfinishedSentenc, 09-08-2013, 06:02 AM
Those commands work on Centos 6 guaranteed. Are you logged in as root?

Posted by khrage, 09-08-2013, 01:51 PM
sorry i typed them in wrong. tried again and the config is on 22, password authentication is yes, etc etc

Posted by khrage, 09-09-2013, 06:35 PM
still cant get this working

Posted by RRWH, 09-09-2013, 07:17 PM
is sshd running? is sshd configured for password logins? is sshd configured to allow root login? is sshd running on port 22 or a custom port? are you trying to connect on port 22? Any number of trivial things could be preventing ssh access.

Posted by khrage, 09-09-2013, 11:15 PM
yes its running i think its configured for pw's how would i make sure of that? port 22 - check im connecting via putty via port 22

Posted by StealthyHosting, 09-10-2013, 12:10 AM
Check http://www.yougetsignal.com/tools/open-ports/ then try "service iptables stop" Then check to see if port 22 is open again. If it is your firewall is not configured correctly and you need to open the port on the firewall.

Posted by Vex76, 09-10-2013, 12:16 AM
Check if you receive any traffic via tcpdump: tcpdump -i your_primary_ethernet_dev -vvvvvvvvv Also, check if: PermitRootLogin yes and try to connect via ssh. You can also try to change the default sshd port from 22 to for example 8022, restart sshd and try to connect on that port.

Posted by renthemighty, 09-10-2013, 12:34 AM
Just try this, Login to the server via KVM and then try to login using ssh at that time check the log file tail -f /var/log/secure

Posted by Kailash12, 09-10-2013, 02:12 AM
Do you get the password prompt to enter your password? Can you provide the screen capture of the error which you are receiving in PuTTy.

Posted by Mayur-strad, 09-16-2013, 05:57 AM
check ip using ping if its reply than your ip working properlly.

Posted by mellow-h, 09-16-2013, 06:25 PM
Your login is possibly restricted by sshd_config file. Try checking the /etc/ssh/sshd_config and check if there are any line with "AllowUsers". That might be restricting your access. I am not sure how GSS authentication is configured with OpenSSH, but if your hosts know it, you should allow them to configure it for you.

Posted by AttackerNET, 09-16-2013, 07:34 PM
It looks like you have modified your sshd_config file or the server was set to only accept public key authentications. Try providing the output of this command and all relevant logs from /var/log/secure $ cat /etc/ssh/sshd_config|grep GSSAPIAuthentication $ cat /etc/ssh/sshd_config|grep PasswordAuthentication $ cat /etc/ssh/sshd_config|grep Protocol PS: GSSAPIauthentication will only work over protocol 2



Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article

Also Read
nac.net down? (Views: 688)
Issues with lxadmin (Views: 671)

Language: