Cannot login as root with ssh


Recommended Posts

Hi,

I am running a centos 5.2 machine, and when I use VNC I can login as root / su to root but if I connect to the machine via a terminal ssh session, I can login under my username but if I try and su or login as root it keeps saying password is incorrect?

Any ideas?

thanks

Link to comment
Share on other sites

Still says incorrect password - and I know the password is correct as I can log in with it elsewhere?

You have to enable the root account in the openssh config.

Aah Ok, how would I do that? I'm pretty new to this....

thanks

Link to comment
Share on other sites

Edit /etc/openssh.conf or wherever the conf file is located.

There's a line in there you need to edit to allow root to login via SSH. Make sure you restart the daemon after also. "/etc/rc.d/sshd restart"

Sorry I can't be more help. I'm not great on linux.

*Edit*

Seems its /etc/ssh/sshd_config on my box here.

"PermitRootLogin yes"

Edited by ]SK[
Link to comment
Share on other sites

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.