2

I have an AWS EC2 instance to which I can't connect through one of Ubuntu servers. However, I can connect to the AWS instance through any machine(with and without private SSH key), but Ubuntu server cannot.

  • Port 22 is opened on Ubuntu.
  • AWS inbound rules configured regarding 22 port - no problems there.
  • Regenerating SSH key didn't help too.

Telnet output:

$ sudo telnet xx.xx.xxx.xxx 22
Trying xx.xx.xxx.xxx...
Connected to xx.xx.xxx.xxx.
Escape character is '^]'.

SSH output (same output when private key is used):

$ ssh xxxxx@xxxxxxx -vvv
OpenSSH_5.9p1 Debian-5ubuntu1.4, OpenSSL 1.0.1 14 Mar 2012
debug2: ssh_connect: needpriv 0
debug1: Connecting to xxxxxx [xx.xx.xxx.xxx] port 22.
debug1: Connection established.
debug3: Incorrect RSA1 identifier
debug3: Could not load "meteor" as a RSA1 public key
debug1: identity file meteor type -1
debug1: identity file meteor-cert type -1

After it hangs. SSH doesn't give any timeout message and it can be stopped, by pressing ctrl+c . I guess after these lines, it must start SSH protocol.

Is it a networking problem or SSH client problem?

  • Network is responsible for communication between two devices. Since you can telnet to port 22 successfully, it is NOT a network problem. Is that an old ubuntu server? Do an update on your ssh client, remove all entries for that server from your ~.ssh and try to ssh again. – Dimi Jun 22 '16 at 14:42
2

Websense was blocking forwarded ports. So it was network issue. Took me a lot of time to figure out.

  • Be sure to return to this and mark it as the answer – Colt Jun 30 '16 at 10:42

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.