Hi,
I'm trying to establish a connection between my server and another with but it doesn't work.
I began to create 2 RSA keys and I sent the public key to the other server which installed it in his authorized_keys.
81.200.xxx.xxx is the IP of the distant server.
My problems are :
1) I don't know why but I can't ping the other server nor even ssh on it
Code:
[myUser@myServer ~]$ ping 81.200.xxx.xxx
PING 81.200.xxx.xxx (81.200.xxx.xxx) 56(84) bytes of data.
--- 81.200.xxx.xxx ping statistics ---
427 packets transmitted, 0 received, 100% packet loss, time 425991ms
Code:
[myUser@myServer ~]$ ssh user@81.200.xxx.xxx
ssh: connect to host 81.200.xxx.xxx port 22: Connection timed out
I'm under a proxy/Firewall, perhaps I don't have the right to connect directly, I must check that.
2) BUT, when I try to ssh on the other server adding the IP address of my proxy and with some verbose I have this result :
Code:
[myUser@myServer ~]$ ssh -v -o "ProxyCommand /usr/bin/nc -x ip_of_my_proxy:1080 %h 22" user@81.200.xxx.xxx
[...]
OpenSSH_4.3p2, OpenSSL 0.9.8e-fips-rhel5 01 Jul 2008
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug1: Executing proxy command: exec /usr/bin/nc -x ip_of_my_proxy:1080 81.200.xxx.xxx 22
debug1: identity file /local/info/data/myuser/.ssh/identity type -1
debug1: identity file /local/info/data/myuser/.ssh/id_rsa type 1
debug1: identity file /local/info/data/myuser/.ssh/id_dsa type -1
debug1: loaded 3 keys
debug1: Remote protocol version 2.0, remote software version OpenSSH_5.6
debug1: match: OpenSSH_5.6 pat OpenSSH*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_4.3
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client aes128-ctr hmac-md5 none
debug1: kex: client->server aes128-ctr hmac-md5 none
debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<1024<8192) sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP
debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
debug1: Host '81.200.xxx.xxx' is known and matches the RSA host key.
debug1: Found key in /local/info/data/myuser/.ssh/known_hosts:1
debug1: ssh_rsa_verify: signature correct
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug1: SSH2_MSG_SERVICE_ACCEPT received
Sie sind auf dem COM Server "distantServer" der Produktion Umgebung angemeldet.
Authorized access only. All actions will be logged.
(Here the connection is established, are you ok?)
debug1: Authentications that can continue: publickey,keyboard-interactive
debug1: Next authentication method: publickey
debug1: Trying private key: /local/info/data/myuser/.ssh/identity
debug1: Offering public key: /local/info/data/myuser/.ssh/id_rsa
debug1: Authentications that can continue: publickey,keyboard-interactive
debug1: Trying private key: /local/info/data/myuser/.ssh/id_dsa
debug1: Next authentication method: keyboard-interactive
debug1: Authentications that can continue: publickey,keyboard-interactive
debug1: No more authentication methods to try.
Permission denied (publickey,keyboard-interactive).
But at the end the permission is denied. In my hand I have the good rights on my .ssh directory and all appears to be ok.
Code:
0700 .ssh
0600 id_rsa
0644 id_rsa.pub and known_hosts
The fingerprints of the keys are the same for me and the other server and I guess that his ssh configuration is good too.
Do you have ideas of what could be the problem ?
(sorry for my bad english)
Thanks.