Forums

visual studio code ssh connection does not connect

I am trying to maken a connection to ssh.pythonanywhere.com via Visual Studio Code but it does not work. It does work via Filezilla though. Here is my log from trying to log in. Can somebody tell me what is wrong?

OpenSSH_for_Windows_7.7p1, LibreSSL 2.6.5
debug1: Reading configuration data C:\\Users\\mtjict/.ssh/config
debug1: C:\\Users\\mtjict/.ssh/config line 1: Applying options for ssh.pythonanywhere.com
debug1: Connecting to ssh.pythonanywhere.com [23.21.200.247] port 22.
debug1: Connection established.
debug1: key_load_public: No such file or directory
debug1: identity file C:\\Users\\mtjict/.ssh/id_rsa type -1     
debug1: key_load_public: No such file or directory
debug1: identity file C:\\Users\\mtjict/.ssh/id_rsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file C:\\Users\\mtjict/.ssh/id_dsa type -1     
debug1: key_load_public: No such file or directory
debug1: identity file C:\\Users\\mtjict/.ssh/id_dsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file C:\\Users\\mtjict/.ssh/id_ecdsa type -1     
debug1: key_load_public: No such file or directory
debug1: identity file C:\\Users\\mtjict/.ssh/id_ecdsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file C:\\Users\\mtjict/.ssh/id_ed25519 type -1     
debug1: key_load_public: No such file or directory
debug1: identity file C:\\Users\\mtjict/.ssh/id_ed25519-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file C:\\Users\\mtjict/.ssh/id_xmss type -1
debug1: key_load_public: No such file or directory
debug1: identity file C:\\Users\\mtjict/.ssh/id_xmss-cert type -1
debug1: Local version string SSH-2.0-OpenSSH_for_Windows_7.7
debug1: Remote protocol version 2.0, remote software version OpenSSH_7.2p2 Ubuntu-4ubuntu2.8
debug1: match: OpenSSH_7.2p2 Ubuntu-4ubuntu2.8 pat OpenSSH* compat 0x04000000
debug1: Authenticating to ssh.pythonanywhere.com:22 as 'Pipsy100'
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: algorithm: curve25519-sha256@libssh.org
debug1: kex: host key algorithm: rsa-sha2-512
debug1: kex: server->client cipher: chacha20-poly1305@openssh.com MAC: <implicit> compression: none
debug1: kex: client->server cipher: chacha20-poly1305@openssh.com MAC: <implicit> compression: none
debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
debug1: Server host key: ssh-rsa SHA256:zy2jmqxNg/fs6tFZK55OjHTI3B2UofzOiUvTPtcX3/Y
debug1: Host 'ssh.pythonanywhere.com' is known and matches the RSA host key.
debug1: Found key in C:\\Users\\mtjict/.ssh/known_hosts:4
debug1: rekey after 134217728 blocks
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: rekey after 134217728 blocks
debug1: pubkey_prepare: ssh_get_authentication_socket: No such file or directory
debug1: SSH2_MSG_EXT_INFO received
debug1: kex_input_ext_info: server-sig-algs=<rsa-sha2-256,rsa-sha2-512>
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: Trying private key: C:\\Users\\mtjict/.ssh/id_rsa
debug1: Trying private key: C:\\Users\\mtjict/.ssh/id_dsa
debug1: Trying private key: C:\\Users\\mtjict/.ssh/id_ecdsa
debug1: Trying private key: C:\\Users\\mtjict/.ssh/id_ed25519
debug1: Trying private key: C:\\Users\\mtjict/.ssh/id_xmss
debug1: Next authentication method: password
debug1: read_passphrase: can't open /dev/tty: No such file or directory
Pipsy100@ssh.pythonanywhere.com's password:
debug1: Authentications that can continue: publickey,password
Permission denied, please try again.
debug1: read_passphrase: can't open /dev/tty: No such file or directory
Pipsy100@ssh.pythonanywhere.com's password:

[edited by admin: formatting]

do you usually use an ssh key pair to login? or do you use a password?

I am using a username and a password.

that traceback seems like it is asking you for a password, and you are either not providing it or providing the wrong password. If you have given the wrong password multiple times, then you would blocked for a bit to avoid people from bruteforcing your password.