LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-29-2004, 06:17 AM   #1
spotass
LQ Newbie
 
Registered: May 2004
Location: Lithuania
Distribution: Arch, Fedora
Posts: 11

Rep: Reputation: 0
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...
 
Old 05-29-2004, 06:41 AM   #2
Linux_in_NH
Member
 
Registered: Jan 2004
Location: NH
Distribution: Mandrake, Geentoo, Ubuntu
Posts: 105

Rep: Reputation: 15
try 'ssh -v host' and look at the output for clues
 
Old 05-29-2004, 10:06 AM   #3
spotass
LQ Newbie
 
Registered: May 2004
Location: Lithuania
Distribution: Arch, Fedora
Posts: 11

Original Poster
Rep: Reputation: 0
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?
 
Old 05-29-2004, 11:28 AM   #4
xlord
Member
 
Registered: Mar 2002
Posts: 75

Rep: Reputation: 15
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
 
Old 05-30-2004, 06:04 AM   #5
Linux_in_NH
Member
 
Registered: Jan 2004
Location: NH
Distribution: Mandrake, Geentoo, Ubuntu
Posts: 105

Rep: Reputation: 15
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)?
 
Old 05-31-2004, 04:29 AM   #6
spotass
LQ Newbie
 
Registered: May 2004
Location: Lithuania
Distribution: Arch, Fedora
Posts: 11

Original Poster
Rep: Reputation: 0
telnet is not running there... and all users has /bin/bash shell... root`s shell is /bin/bash too... chmod of shell is 755...
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
SSH server error on connect rlbewick Mandriva 2 05-02-2005 02:43 PM
can not connect to x server in ssh YellowFin Linux - Newbie 3 03-22-2005 08:35 PM
ssh server I can connect to glennt11 General 1 01-20-2005 12:05 PM
ssh issue: cannot connect to x server jgruss Linux - Software 3 07-14-2004 09:36 AM
cannot connect to X server over ssh ocularbob Linux - General 1 02-03-2003 04:11 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:51 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration