Can't login via SSH as root anymore after installin CWP

Started by Samekas, December 06, 2015, 09:27:05 PM

Previous topic - Next topic

Samekas

Hello,

First of all let me say this panel is awesome, is a good alternative to cpanel.
After I installed CWP I can't login anymore via shh as root, it says login incorrect but I know the login is correct, can someone help me? Thank you!

Administrator

you should check your sshd configuration, cwp by default is not making any changes in sshd configuration.

Samekas

It has this, but still doesn't work, I can install packages via vnc but in terminal I can't logi with the sudo.

# Authentication:

#LoginGraceTime 2m
PermitRootLogin yes
#StrictModes yes
#MaxAuthTries 6
#MaxSessions 10

Igor S.

Hello.

Check your /var/log/security . SSH hasn't dependience the CWP.



You can ask me to solve any problem with your server for some money in pm  ;)






Services Monitoring & RBL Monitoring
http://centos-webpanel.com/services-monitor


Join our Development Team and get paid !
http://centos-webpanel.com/develope-modules-for-cwp

Installation Instructions
http://centos-webpanel.com/installation-instructions

Get Fast Support Here
http://centos-webpanel.com/support-services

Samekas

Quote from: Igor S. on December 08, 2015, 09:24:39 AM
Hello.

Check your /var/log/security . SSH hasn't dependience the CWP.

I got this

Dec  8 11:51:51 srv86 sshd[750]: User root not allowed because shell /bin/bash\r does not exist
Dec  8 11:51:51 srv86 sshd[751]: input_userauth_request: invalid user root

Edit:

I was able to solver the problem, it looks the the passwd file was on dos format after changing this file with a nom linux editor, so I have download the passwd to a windows pc and download the dos2unix and converted the file to unix, then I replaced the file on the server with the new and it's working now!

Igor S.

Hi,

QuoteDec  8 11:51:51 srv86 sshd[750]: User root not allowed because shell /bin/bash\r does not exist
Dec  8 11:51:51 srv86 sshd[751]: input_userauth_request: invalid user root

Yes, that means you have the error in end of line with root user.



You can ask me to solve any problem with your server for some money in pm  ;)






Services Monitoring & RBL Monitoring
http://centos-webpanel.com/services-monitor


Join our Development Team and get paid !
http://centos-webpanel.com/develope-modules-for-cwp

Installation Instructions
http://centos-webpanel.com/installation-instructions

Get Fast Support Here
http://centos-webpanel.com/support-services