Forums

SSH Closed Before I can do anything

I am not sure how to go about this... I opened up ssh, typed in my password, and it booted me out.

18:47 ~ $ ssh -v endendragon@ssh.pythonanywhere.com                                                                                                                                                               
OpenSSH_6.6.1, OpenSSL 1.0.1f 6 Jan 2014
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: Applying options for *
debug1: Connecting to ssh.pythonanywhere.com [23.21.200.247] port 22.
debug1: Connection established.
debug1: identity file /home/EndenDragon/.ssh/id_rsa type 1
debug1: identity file /home/EndenDragon/.ssh/id_rsa-cert type -1
debug1: identity file /home/EndenDragon/.ssh/id_dsa type -1
debug1: identity file /home/EndenDragon/.ssh/id_dsa-cert type -1
debug1: identity file /home/EndenDragon/.ssh/id_ecdsa type -1
debug1: identity file /home/EndenDragon/.ssh/id_ecdsa-cert type -1
debug1: identity file /home/EndenDragon/.ssh/id_ed25519 type -1
debug1: identity file /home/EndenDragon/.ssh/id_ed25519-cert type -1
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_6.6.1p1 Ubuntu-2ubuntu2.7
debug1: Remote protocol version 2.0, remote software version OpenSSH_6.6.1p1 Ubuntu-2ubuntu2.8
debug1: match: OpenSSH_6.6.1p1 Ubuntu-2ubuntu2.8 pat OpenSSH_6.6.1* compat 0x04000000
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client aes128-ctr hmac-md5-etm@openssh.com none
debug1: kex: client->server aes128-ctr hmac-md5-etm@openssh.com none
debug1: sending SSH2_MSG_KEX_ECDH_INIT
debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
debug1: Server host key: RSA d5:50:bd:8e:23:eb:14:3f:cf:15:87:42:0b:bf:e2:60
debug1: Host 'ssh.pythonanywhere.com' is known and matches the RSA host key.
debug1: Found key in /home/EndenDragon/.ssh/known_hosts:12
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
<<<<<<:>~ PythonAnywhere SSH. Help @ https://help.pythonanywhere.com/pages/SSHAccess
debug1: Authentications that can continue: publickey,password
debug1: Next authentication method: publickey
debug1: Offering RSA public key: /home/EndenDragon/.ssh/id_rsa
debug1: Authentications that can continue: publickey,password
debug1: Trying private key: /home/EndenDragon/.ssh/id_dsa
debug1: Trying private key: /home/EndenDragon/.ssh/id_ecdsa
debug1: Trying private key: /home/EndenDragon/.ssh/id_ed25519
debug1: Next authentication method: password
endendragon@ssh.pythonanywhere.com's password: 
debug1: Authentication succeeded (password).
Authenticated to ssh.pythonanywhere.com ([23.21.200.247]:22).
debug1: channel 0: new [client-session]
debug1: Requesting no-more-sessions@openssh.com
debug1: Entering interactive session.
debug1: Sending environment.
debug1: Sending env LC_CTYPE = en_US.utf-8
debug1: client_input_channel_req: channel 0 rtype exit-status reply 0
debug1: client_input_channel_req: channel 0 rtype eow@openssh.com reply 0
Last login: Mon Apr 24 18:48:42 2017 from c-69-69-69-420.equestria.canterlot.horse
debug1: channel 0: free: client-session, nchannels 1
Connection to ssh.pythonanywhere.com closed.
Transferred: sent 3180, received 2792 bytes, in 1.4 seconds
Bytes per second: sent 2349.6, received 2062.9
debug1: Exit status 254

We have seen problems in the past if a users' .bashrc prints anything to the console, it can interfere with SSH connections. Could that be it? Let us know if so and we'll update the docs...

Ah I blame my username! https://www.pythonanywhere.com/forums/topic/309/

Ah yes! That would do it :-)