Simpler Navigation for Servers and Operating Systems
Completed: a much simpler Servers and Operating Systems section of the Community. We combined many of the older boards, so you won't have to click through so many levels to get at the information you need. Check the consolidated boards here as many sub-forums are now single boards.
cancel
Showing results for 
Search instead for 
Did you mean: 

Ssh Problem

castro_2
Regular Advisor

Ssh Problem

The users with ID=0 works fine but when I try to login as another user with ID<>0 always login but immediately close

Thanks
3 REPLIES
Hal Rottenberg
Frequent Advisor

Re: Ssh Problem

Check /var/log/messages to see what sshd reports and at the same time, use ssh -v from the client. This should provide enough debug info to figure out the problem. Post your results if you'd like more help.

-hal
If at first you don't succeed, then skydiving isn't for you.
castro_2
Regular Advisor

Re: Ssh Problem

/var/log/messages
Jun 5 12:51:40 whdlx01 sshd(pam_unix)[10101]: session opened for user javier by (uid=0)

ssh -v localhost -l javier
javier@localhost's password:
debug1: packet_send2: adding 64 (len 60 padlen 4 extra_pad 64)
debug1: ssh-userauth2 successful: method password
debug1: channel 0: new [client-session]
debug1: send channel open 0
debug1: Entering interactive session.
debug1: ssh_session2_setup: id 0
channel request 0: pty-req
channel request 0: shell
fd 3 setting TCP_NODELAY
channel 0: open confirm rwindow 0 rmax 32768
channel_free: channel 0: client-session, nchannels 1
Connection to localhost closed by remote host.
Connection to localhost closed.
debug1: Transferred: stdin 0, stdout 0, stderr 81 bytes in 0.0 seconds
debug1: Bytes per second: stdin 0.0, stdout 0.0, stderr 30303.3
debug1: Exit status -1
Hal Rottenberg
Frequent Advisor

Re: Ssh Problem

Just after ssh closed, what does /var/log/messages say? Try again to connect, but first kill sshd then run it with the -d parameter to do loggong on the server side. Forgot to tell you that one earlier. :)

/usr/sbin/sshd -d
If at first you don't succeed, then skydiving isn't for you.