LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   the user can't connect to server over ssh (https://www.linuxquestions.org/questions/linux-newbie-8/the-user-cant-connect-to-server-over-ssh-187276/)

spotass 05-29-2004 06:17 AM

the user can't connect to server over ssh
 
user can't connect to server over ssh, but root can...
when I entered user name and password, server gave me the message
Quote:

Connection to my_servers_hostname closed by remote host
but with root, it's ok... no problems to connect...

Linux_in_NH 05-29-2004 06:41 AM

try 'ssh -v host' and look at the output for clues

spotass 05-29-2004 10:06 AM

Quote:

spot@servers_host's password:
debug1: Authentication succeeded (password).
debug1: channel 0: new [client-session]
debug1: Entering interactive session.
debug1: channel 0: request pty-req
debug1: channel 0: request shell
debug1: channel 0: open confirm rwindow 0 rmax 32768
debug1: channel_free: channel 0: client-session, nchannels 1
Connection to baitas.lzua.lt closed by remote host.
Connection to baitas.lzua.lt closed.
debug1: Transferred: stdin 0, stdout 0, stderr 91 bytes in 0.1 seconds
debug1: Bytes per second: stdin 0.0, stdout 0.0, stderr 1289.8
debug1: Exit status -1
where's the problem?

xlord 05-29-2004 11:28 AM

Re: the user can't connect to server over ssh
 
Quote:

Originally posted by spotass
user can't connect to server over ssh, but root can...
when I entered user name and password, server gave me the message

but with root, it's ok... no problems to connect...

I didnt think you can login ssh remotely with root.. but anyways... try deleting the user and recreating the user again with default values... this happend to me once.. and its what i did and it worked.. unless you are blocking certain ips that looks like theres

Linux_in_NH 05-30-2004 06:04 AM

Looks to me like your shell is logging you out for whatever reason. Can you log into the user account using telnet? What shell is the user configured to use in /etc/passwd (the last field)?

spotass 05-31-2004 04:29 AM

telnet is not running there... and all users has /bin/bash shell... root`s shell is /bin/bash too... chmod of shell is 755...


All times are GMT -5. The time now is 09:21 AM.