Forums

Cannot ssh into PythonAnywhere

Hi, today I wanted to connect to PythonAnywhere but am not able to. Could you help me?

I'm trying to connect from a Ubuntu laptop. I've been able to connect from Pythonanywhere to the Ubuntu laptop successfully, but now would like to do the reverse.

Here's my command and the output:

ssh <myuser>@ssh.pythonanywhere.com
<<<<<<:>~ PythonAnywhere SSH. Help @ https://help.pythonanywhere.com/pages/SSHAccess
<myuser>@ssh.pythonanywhere.com's password: 
Last login: Sat Dec 11 16:12:10 2021 from 69.113.46.80
Connection to ssh.pythonanywhere.com closed.

Here's the end output from ssh -v, from when it asks me for the password:

debug1: Next authentication method: password
<myuser>@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: pledge: network
debug1: client_input_global_request: rtype hostkeys-00@openssh.com want_reply 0
debug1: Sending environment.
debug1: Sending env LANG = en_US.UTF-8
Last login: Sat Dec 11 15:54:15 2021 from <myIP>
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
debug1: channel 0: free: client-session, nchannels 1
Connection to ssh.pythonanywhere.com closed.
Transferred: sent 2700, received 3148 bytes, in 1.9 seconds
Bytes per second: sent 1389.2, received 1619.6
debug1: Exit status 254

Any idea what's wrong? Again I'm able to do ssh from PythonAnywhere to my laptop ...

G.

Are you perhaps using the wrong casing for your username? It should be "Guicord", not (say) "guicord".

Many thanks, that worked!!

Excellent, thanks for confirming!