SSH immediate logout problem

circlesquare

Verified User
Joined
May 24, 2007
Messages
22
When i login to ssh as admin, the password gets accepted however the connection immediately terminates and putty closes the window.

I have the following in sshd_config:

PermitRootLogin no
PasswordAuthentication yes
AllowUsers root admin

There are no related errors in /var/log/messages and admin is part of he wheel group.

I have tried stopping and then starting ssh which did not work.

When I set PermitRootLogin to yes, I am able to login as root without any problems

Any ideas? Thanks
 
thanks for the hint. not sure what the shell type was for admin, but i logged in as root and did the following which did the trick:

Code:
[root@harrier ~]# echo $SHELL
/bin/bash
[root@harrier ~]# chsh -s /bin/bash admin
Changing shell for admin.
Shell changed.
 
As a follow up for anyone else with a similar problem, I believe it originated by doing a restore of the admin account (backup was made on centos 4 32bit) to a new server (centos 5 64 bit)
 
Back
Top