SSH immediatly logs me out after successful login

framon

Verified User
Joined
Nov 14, 2010
Messages
12
hi
I'm migrating from one server to another I've moved the admin account with a backup, but after restoring the backup in the new server, I was not able any more to log in via ssh as user admin.

The ssh connection is shout down after I'm successfully logged in

---------
[root@vps ~]# ssh admin@localhost
admin@localhost's password:
Last login: Sun Jan 16 19:24:22 2011 from localhost.localdomain
Connection to localhost closed.

---- and this is my secure log :

Jan 16 19:28:48 orange sshd[1535]: Accepted password for admin from 127.0.0.1 port 42865 ssh2
Jan 16 19:28:48 orange sshd[1535]: pam_unix(sshd:session): session opened for user admin by (uid=0)
Jan 16 19:28:48 orange sshd[1535]: pam_unix(sshd:session): session closed for user admin


what can be the cause of the problem ?
 
solved

importing users and admin, changed the bash to /bin/false , fixing to /bin/bash solved the problem.
 
Back
Top