0

I am trying to connect to my server (Synology DS212) using ssh xxx@yyy -p 22222 -vvv but I can't and I obtain the following error:

OpenSSH_6.2p2, OSSLShim 0.9.8r 8 Dec 2011
debug1: Reading configuration data /Users/xxxxx/.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 yyyyyyy [xx.xx.xx.xx] port 22222.
debug1: Connection established.
debug1: identity file /Users/xxxxx/.ssh/id_rsa type -1
debug1: identity file /Users/xxxxx/.ssh/id_rsa-cert type -1
debug1: identity file /Users/xxxxx/.ssh/id_dsa type -1
debug1: identity file /Users/xxxxx/.ssh/id_dsa-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

The connection works on an other computer but not on mine (macbook pro). This connection does not use any keys (even when I have deleted them it did not work).

Do you have any idea of the trouble?

Feeback: The issue is due to the configuration of the network on which I executed ssh xxx@yyy -p 22222 -vvv. The router allows me to open connections on every ports but it blocks every incoming connections on non standard port for ssh (non 22 port). In my case, there are non solution.

Advices: try tcpdump on computer and server at the same time for monitor incoming and outgoing connections.

Guuk
  • 101
  • 1
  • 2
  • You can check this **[link](http://serverfault.com/questions/445045/ssh-connection-error-ssh-exchange-identification-read-connection-reset-by-pe)**. Also if its possible to check in secure log of your server then check there. – Pratap Sep 17 '14 at 14:59
  • @PratapSingh I have used `tcpdump` and I obtain some lines: `15:22:14.074084 IP zzzz.ssh > yyyy.52113: Flags [P.], seq 1:33, ack 1, win 362, options [nop,nop,TS val 3701306 ecr 358037802], length 32`. So the server receives the connexion but something seems to be wrong (maybe blocked ports on my network... but it is strange because I can connect to other server using ssh). – Guuk Sep 17 '14 at 15:23
  • allow your IP on /etc/hosts.allow file and see if you are able to access from mac book. But it seems that timeout error points to local firewall so better you should disable your firewall on your macbook and check. – Pratap Sep 17 '14 at 15:24
  • @PratapSingh I did this but the result is the same.... – Guuk Sep 17 '14 at 16:01
  • in case you are able to access the server from different location the login to server and check what is there in secure log though I doubt anything will be there as its local to your local n/w check if you have any n/w firewall or anything else can provide traceroute and telnet information in your question. – Pratap Sep 17 '14 at 17:08
  • Have you ever found a solution to this problem? I am experiencing the same issue right now. – fsimkovic Jan 22 '15 at 10:26
  • @Felix_Sim In fact, the server of my network blocks non classical port for ssh. I can go outside and connect to my server using the port `22222` but the answer is blocked by the entry server on my network... I hope this is clear :-) I confirm that the error message is not very easy to understand. – Guuk Jan 22 '15 at 10:33
  • @Guuk Very odd...yesterday this connection was working perfectly fine. I wonder... – fsimkovic Jan 22 '15 at 10:34
  • @Felix_Sim Do you try to use `tcpdump` on your computer and on the server for checking the connexion? – Guuk Jan 22 '15 at 10:36
  • @Guuk No. How would I use it? – fsimkovic Jan 22 '15 at 10:40
  • @Felix_Sim I had used this webpage for finding the right syntax: http://www.cyberciti.biz/faq/tcpdump-capture-record-protocols-port/ – Guuk Jan 22 '15 at 10:45
  • Let us [continue this discussion in chat](http://chat.stackexchange.com/rooms/20472/discussion-between-felix-sim-and-guuk). – fsimkovic Jan 22 '15 at 10:47

0 Answers0