PDA

View Full Version : SSH Logon Problem...



PGP
09-12-2008, 05:12 PM
During installing DA i mad a mistake.
Insert string: "Allowusers username" in ssh_config instead of sshd_config.
So now i cant logon on to server through SSH. =(
But i can connect to server throgh KVM.
Is there any way to fix it?

PS Allowusers was fixed throgh DA File Editor. But still no success.
User admin succesfully can login onto SSH, but cant 'su' in to root.
When i try to logon with old user who can su to root - putty just closing after entering password. =((:confused:

PGP
09-13-2008, 03:43 AM
Any suggestions?
I can login into single mode over KVM, but dont know where to go, and what to do... =(
And over KVM cant login as root. No errors. Displays greeting screen and then logout. =(

rtaylor
09-13-2008, 08:09 AM
If you used the DA file editor and put "AllowUsers root" then restarted sshd, I don't understand the problem unless you altered other parts of the configuration?

PGP
09-13-2008, 11:00 AM
=( So at the current moment i have th following:
1. System was completly reinstalled.
2. Was installed all needed ports. Also was installed webmin.
3. SSH was working, as a su.
4. Allowusers username was added to sshd_config
5. Then i installing DA and have the same problem =(
6. Trying to login over SSH (Putty). Only directadmin's user can login over SSH. But it cant su to root.
7. My user cant login. Putty logout immediatly after successfull login.
=(
8. Tried to add 'admin' to wheel group. Login over SSH - success. Triyng su, entering root password, no errors, but and entering into root account didnt happen =(

So, now i can change every file in the system over webmin. But what exactly to do - dont know... =(((

PGP
09-13-2008, 11:31 AM
I managed to find out where is the problem.
For root and my user /bin/csh was selected as shell.
But after DA setup csh became faulty...
So, trouble in this.
Here is the link for this trouble...
http://www.directadmin.com/forum/showthread.php?p=135289