Control Web Panel

WebPanel => CentOS 6 Problems => Topic started by: Samekas on December 06, 2015, 09:27:05 PM

Title: Can't login via SSH as root anymore after installin CWP
Post by: Samekas on December 06, 2015, 09:27:05 PM
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!
Title: Re: Can't login via SSH as root anymore after installin CWP
Post by: Administrator on December 07, 2015, 03:10:50 PM
you should check your sshd configuration, cwp by default is not making any changes in sshd configuration.
Title: Re: Can't login via SSH as root anymore after installin CWP
Post by: Samekas on December 07, 2015, 05:48:17 PM
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
Title: Re: Can't login via SSH as root anymore after installin CWP
Post by: Igor S. on December 08, 2015, 09:24:39 AM
Hello.

Check your /var/log/security . SSH hasn't dependience the CWP.
Title: Re: Can't login via SSH as root anymore after installin CWP
Post by: Samekas on December 08, 2015, 11:00:55 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!
Title: Re: Can't login via SSH as root anymore after installin CWP
Post by: Igor S. on December 11, 2015, 10:09:59 AM
Hi,

Quote
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

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