beer9
asked on
Not able to SSH
I am not able to ssh to one of the EC2 host in AWS:
Though I can telnet it:
Appreciate if someone can help in suggesting how to troubleshoot it
bash-3.2$ ssh -vvvv -i ~/.ssh/id_rsa_APP_GIT 54.12.34.56 -l b123
OpenSSH_6.2p2, OSSLShim 0.9.8r 8 Dec 2011
debug1: Reading configuration data /Users/user1/.ssh/config
debug1: Reading configuration data /etc/ssh_config
debug1: /etc/ssh_config line 20: Applying options for *
debug1: /etc/ssh_config line 102: Applying options for *
debug2: ssh_connect: needpriv 0
debug1: Connecting to 54.12.34.56 [54.12.34.56] port 22.
debug1: Connection established.
debug3: Incorrect RSA1 identifier
debug3: Could not load "/Users/user1/.ssh/id_rsa_APP_GIT" as a RSA1 public key
debug1: identity file /Users/user1/.ssh/id_rsa_APP_GIT type 1
debug1: identity file /Users/user1/.ssh/id_rsa_APP_GIT-cert type -1
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_6.2
ssh_exchange_identification: read: Operation timed out
Though I can telnet it:
bash-3.2$ telnet 54.12.34.56 22
Trying 54.12.34.56...
Connected to ec2-54-12-34-56.compute-1.amazonaws.com.
Escape character is '^]'.
^]
telnet> q
Connection closed.
Appreciate if someone can help in suggesting how to troubleshoot it
ASKER
Thanks for hint, here my local ssh config, I am using SSH:
bash-3.2$ cat /etc/ssh_config | grep -v ^# | grep -v ^$
Host *
SendEnv LANG LC_*
Host *
XAuthLocation /opt/X11/bin/xauth
bash-3.2$ cat /etc/sshd_config | grep -v ^# | grep -v ^$
SyslogFacility AUTHPRIV
AuthorizedKeysFile .ssh/authorized_keys
UsePrivilegeSeparation sandbox # Default for new installations.
AcceptEnv LANG LC_*
Subsystem sftp /usr/libexec/sftp-server
XAuthLocation /opt/X11/bin/xauth
I think that the problem is here
debug3: Incorrect RSA1 identifier
debug3: Could not load "/Users/user1/.ssh/id_rsa_ APP_GIT" as a RSA1 public key
Can you show us the contents of /Users/user1/.ssh/authoriz ed_keys ? This is the user1 public key on the server, not your private key, and it is supposed to be shared so you are not at risk.
debug3: Incorrect RSA1 identifier
debug3: Could not load "/Users/user1/.ssh/id_rsa_
Can you show us the contents of /Users/user1/.ssh/authoriz
Can you check versions on both client and server?
or
dpkg -s openssh | grep Version
or
yum info openssh
ASKER
Server:
$ dpkg -s openssh-server | grep Version
Version: 1:6.6p1-2ubuntu2
Client:
bash-3.2$ ssh -V
OpenSSH_6.2p2, OSSLShim 0.9.8r 8 Dec 201
$ dpkg -s openssh-server | grep Version
Version: 1:6.6p1-2ubuntu2
Client:
bash-3.2$ ssh -V
OpenSSH_6.2p2, OSSLShim 0.9.8r 8 Dec 201
Could you check if you can upgrade OpenSSH on your client?
apt-get update/upgrade OpenSSH
ASKER
I am using Mac laptop on client side, not sure how to upgrade the SSH client
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Open in new window
Might want to check versions on your local machine... Or check local ssh config... Or try by removing old ssh config files if any exist.