LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Embedded & Single-board computer (https://www.linuxquestions.org/questions/linux-embedded-and-single-board-computer-78/)
-   -   TS-linux ssh drops connection as soon as login is successful (https://www.linuxquestions.org/questions/linux-embedded-and-single-board-computer-78/ts-linux-ssh-drops-connection-as-soon-as-login-is-successful-624247/)

BrandonChristel 02-27-2008 10:16 AM

TS-linux ssh drops connection as soon as login is successful
 
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

BrandonChristel 02-27-2008 10:29 AM

I double posted in linux-software, a cardinal sin, i know, but i need an answer quick. i'll delete one as soon as one gets going.

from the other thread
- i looked for ~/.ssh/known_hosts, it doesn't exist on the remote computer and i emptied it on the computer i'm ssh-ing from - same error after accepting key.


All times are GMT -5. The time now is 11:07 AM.