Si_ Posted August 12, 2008 Share Posted August 12, 2008 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 More sharing options...
Shaun N. Posted August 12, 2008 Share Posted August 12, 2008 su - Link to comment Share on other sites More sharing options...
]SK[ Posted August 12, 2008 Share Posted August 12, 2008 You have to enable the root account in the openssh config. Link to comment Share on other sites More sharing options...
Si_ Posted August 12, 2008 Author Share Posted August 12, 2008 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 More sharing options...
]SK[ Posted August 12, 2008 Share Posted August 12, 2008 (edited) 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 August 12, 2008 by ]SK[ Link to comment Share on other sites More sharing options...
Si_ Posted August 12, 2008 Author Share Posted August 12, 2008 hmm, PermitRootLogin is already set to Yes in the config, but still says the password is incorrect? Link to comment Share on other sites More sharing options...
Recommended Posts