Root SSH cant login

powerdomein

Verified User
Joined
Dec 28, 2005
Messages
99
Guys,

Yesterday, i have logged in SSH trough root.
Today, i am trying to log in but it dont works. I cant log in. I had also created a user account with ssh permission. I can log with this account. I can typ SU and log in as root.

But i cant use Sftp and cant log directly to SSH. Also the functions lile service httpd restart of service exim dont work. I must typ
/usr/sbin/httpd restart than works it.

Can someone tell me what is happing and how to change it back to the normaly just direct login with a root.

I am using, centos 4.4. with APF, BFD, Rookkit.


Let me please know how to do it?
 
you might have remote root login disabled at /etc/ssh/sshd_config

check for something like

#AllowUsers root

and uncomment it
 
powerdomein said:
I didnt delete this rule.
Why it`s gone ??

If you are using some security program, like Bastille or some root kit checker, it could have modified sshd config file for you.

Just a guess...
 
rkhunter will NOT change your sshd_config file. Look for some other reason.

No doubt you're using su to become root. You should be using su -; that way you'll get a login environment and your service command will work.

You really shouldn't keep root login enabled; there's a lot of added security in not allowing it.

Jeff
 
Back
Top