3

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?

1
  • 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, 2016 at 14:42

1 Answer 1

2

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

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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .