|
|||
|
SSH root login DENIED
Anyone that can help me solve this issue it would be great.
OK the issue is I cannot login with my root account through ssh. I can login locally on the actual physical machine with root. I just cannot login through with ssh. I put password in and it says denied. Same thing with the users. Everything else works fine though. I can login to WHM and the cpanel for the clients. I can also ftp into all accounts as well. Running Cpanel on AS3. |
|
|||
|
If you want to enable root ssh login do the following:
Open the file /etc/ssh/sshd_config in your favorite text editor. Look for the line that says PermitRootLogin no. Change the no to a yes and then restarted the sshd service. If you want to keep SSH root login disabled (which many people do for security reasons), you need to add a user (or create a new user) and make that user belong to the wheel group. Once that's done, you can login to SSH as that wheel user, and then use the command su - to become the super user (root). You will be prompted for the root password when you issue that command, but again, that command only works if that user is in the wheel group. |
|
|||
|
Ok first off thanks for the reply.
Ok I have gave a user access in wheel group and did manage shell access to enable to that account. Ok the other problem is now is that machine is 30 minutes for me to check those other settings. SSH worked before and was able to login prior to this. So it should be enable already. Still no go even that user gets a denied password when trying login. Any other ideas? |
|
||||
|
Are you using the OS vendor supplied openssh rpms or did you try to compile it yourself?
One thing you could try is to login to the console and do: service sshd stop sshd -d -d -D This will run up the ssh daemon in debug mode and won't fork so you can see exactly what's happening when you attempt to connect in.
__________________
Jonathan Michaelson cPanel Forum Moderator Need your cPanel servers secured and tuned? cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf http://www.configserver.com |
|
|||
|
how do you edit the sshd_config file?
Quote:
Thanks. |
|
|||
|
Hey,
Use the command Code:
nano FILENAME Code:
nano /etc/ss/sshd_config From, Adam
__________________
cPanel Customer since November 2005 --- - 7 Servers running cPanel/WHM Tutorials I have made: - Transfer accounts from one server to another |
![]() |
| Thread Tools | |
| Display Modes | |
|
|