Hey I'm using bash on windows 10 to try to get a quick and easy way to SSH into my Ubuntu server on Amazon Web Services. As far as I can tell everything is set up properly but when I go to ssh
$ ssh -vvv -i key.rsa firstname.lastname@example.org
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 * debug2: ssh_connect: needpriv 0 debug1: Connecting to 123.456.789.123 [123.456.789.123] port 22. debug1: connect to address 123.456.789.123 port 22: Resource temporarily unavailable ssh: connect to host 123.456.789.123 port 22: Resource temporarily unavailable
Connecting via Putty is fine. What gives?
EDIT: I've gotten one step further by adding this line to the end of /etc/ssh/ssh_config:
ProxyCommand nc %h %p %r
but now I've got a new problem:
$ ssh -vvv -i id_rsa 123.456.789.123 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: Executing proxy command: exec nc 123.456.789.123 22 User debug1: permanently_drop_suid: 1000 debug3: Incorrect RSA1 identifier debug3: Could not load "id_rsa" as a RSA1 public key debug1: identity file id_rsa type 1 debug1: identity file id_rsa-cert type -1 debug1: Enabling compatibility mode for protocol 2.0 debug1: Local version string SSH-2.0-OpenSSH_6.6.1p1 Ubuntu-2ubuntu2.8 nc: getaddrinfo: Servname not supported for ai_socktype ssh_exchange_identification: Connection closed by remote host
this exact same command with the exact same key works on my server (to ssh into itself).
$ ssh-keygen -l -f id_rsa
confirms that it's the same valid key. Putty still works, so it's not my AWS port settings. There is no SSH entry in the server log when I attempt to connect from WinBash, but (of course) an entry appears when my server SSHes into itself, so I'm guessing it's something up with my client-side setup, but what?