LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-27-2008, 11:00 AM   #1
BrandonChristel
LQ Newbie
 
Registered: Nov 2006
Posts: 7

Rep: Reputation: 0
SSH quits immediately after login


Hello all-
I am trying to ssh into an embedded computer running ts-linux (debian based), if you guys are familiar. i got ssh installed and ran the keymakers. whenever i try to log in, it doesn't want to stay connected - it logs in and then exits immediately.

i ran ssh in -v and here's the output. looks like it connects and then exits out. any ideas?


brandons-mbp:Sites brandonchristel$ ssh glider@192.168.1.133
Password:
Connection to 192.168.1.133 closed by remote host.
Connection to 192.168.1.133 closed.


brandons-mbp:Sites brandonchristel$ ssh -v glider@192.168.1.133
OpenSSH_4.5p1, OpenSSL 0.9.7l 28 Sep 2006
debug1: Reading configuration data /etc/ssh_config
debug1: Connecting to 192.168.1.133 [192.168.1.133] port 22.
debug1: Connection established.
debug1: identity file /Users/brandonchristel/.ssh/identity type -1
debug1: identity file /Users/brandonchristel/.ssh/id_rsa type -1
debug1: identity file /Users/brandonchristel/.ssh/id_dsa type -1
debug1: Remote protocol version 2.0, remote software version OpenSSH_4.3p2 Debian-9
debug1: match: OpenSSH_4.3p2 Debian-9 pat OpenSSH*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_4.5
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client aes128-cbc hmac-md5 none
debug1: kex: client->server aes128-cbc hmac-md5 none
debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<1024<8192) sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP
debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
debug1: Host '192.168.1.133' is known and matches the RSA host key.
debug1: Found key in /Users/brandonchristel/.ssh/known_hosts:5
debug1: ssh_rsa_verify: signature correct
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey,password,keyboard-interactive
debug1: Next authentication method: publickey
debug1: Trying private key: /Users/brandonchristel/.ssh/identity
debug1: Trying private key: /Users/brandonchristel/.ssh/id_rsa
debug1: Trying private key: /Users/brandonchristel/.ssh/id_dsa
debug1: Next authentication method: keyboard-interactive
Password:
debug1: Authentication succeeded (keyboard-interactive).
debug1: channel 0: new [client-session]
debug1: Entering interactive session.
debug1: channel 0: free: client-session, nchannels 1
Connection to 192.168.1.133 closed by remote host.
Connection to 192.168.1.133 closed.
debug1: Transferred: stdin 0, stdout 0, stderr 89 bytes in 0.0 seconds
debug1: Bytes per second: stdin 0.0, stdout 0.0, stderr 3135.8
debug1: Exit status -1

as a note: for the passphrase in the keygen i didn't input anything. when i logged in, i used the normal user password. Is that the correct way to go about it? It looks like it accepts the connection before it gets cranky and drops it.

Thanks for the help!
brandon

Last edited by BrandonChristel; 02-27-2008 at 11:15 AM.
 
Old 02-27-2008, 11:19 AM   #2
mahmoud
Member
 
Registered: Apr 2006
Location: UK
Distribution: Mandriva, Debain, Redhat, Fedora, Ubuntu, FreeBSD
Posts: 269

Rep: Reputation: 30
try going into both machine go into ~/.ssh/known_host and delete whats there
that works for me anytime i cant login to a server basically it may have identified you with a diff id
 
Old 02-27-2008, 11:23 AM   #3
BrandonChristel
LQ Newbie
 
Registered: Nov 2006
Posts: 7

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by mahmoud View Post
try going into both machine go into ~/.ssh/known_host and delete whats there
Funny, no known_host file in ~/.ssh/ on the other computer. on mine, i deleted the known_hosts entry. When i ssh'd again, it asked to accept key, after i hit yes, it did the same thing.

Also, when I give the wrong password, it does this:

debug1: Next authentication method: keyboard-interactive
Password: (enters wrong password)
debug1: Authentications that can continue: publickey,password,keyboard-interactive
Password: (enters correct password)
debug1: Authentication succeeded (keyboard-interactive).


Thanks for the quick reply, hopefully we can find out what's happenin though.
brandon

Last edited by BrandonChristel; 02-27-2008 at 11:30 AM.
 
Old 02-27-2008, 02:30 PM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 913Reputation: 913Reputation: 913Reputation: 913Reputation: 913Reputation: 913Reputation: 913Reputation: 913
I've seen similar behaviour when there was "strange stuff" happening in
~/.bashrc . I can't recall WHAT it was when I saw this (it's been a good
while, maybe 2 years ago), but try to rename ~/.bashrc on the remote
machine for a test.


Cheers,
Tink
 
Old 02-28-2008, 12:05 PM   #5
BrandonChristel
LQ Newbie
 
Registered: Nov 2006
Posts: 7

Original Poster
Rep: Reputation: 0
Nope, no dice. Thanks for tryin. Any other ideas?
Brandon
 
Old 02-28-2008, 12:23 PM   #6
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981
anything in the logs? maybe pam will have something relevant in /var/log/messages or secure
 
Old 02-28-2008, 07:38 PM   #7
BrandonChristel
LQ Newbie
 
Registered: Nov 2006
Posts: 7

Original Poster
Rep: Reputation: 0
turns out the problem was fixed by adding "ChallengeResponseAuthentication no" to the end of sshd_config. i found the answer on the tslinux mailing list - (the email coincidentally came last night even though i didn't post there, so i guess i got lucky)
brandon
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Connection to SSH closing immediately scratched Linux - General 8 03-26-2007 12:49 AM
mouse quits at login screen lord_darkhelmet Linux - Hardware 1 10-14-2006 09:09 AM
x quits but i cant see the login prompt from boot murrowman789 Slackware 5 06-18-2006 12:50 AM
Prompt user for information immediately after login? bpottle Linux - Software 1 05-31-2006 10:59 AM
Executing startx immediately after login Ratwod Slackware 5 01-09-2004 02:12 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:59 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration