So, I set up another FreeBSD server. Everything was ok until I tried to connect to it via my old FreeBSD.

On connection it echoes:

Unable to connect to relay host, errno=61
ssh_exchange_identification: Connection closed by remote host

But I just used Putty to connect to it and it works. On top of it, I had connected to my old via SSH with no problem. It still can't connect to new one.



  • Win->Old = ok
  • Win->New = ok
  • New->Old = ok
  • Old->New = no_go

What am I doing wrong?

  • 1
    What messages do you get in the security log from the ssh server on the new host? Jun 26, 2015 at 9:39
  • 2
    Maybe the new ssh server request stronger encryption (or newer protocol) than the old client can do. Run ssh with -vvv flag to see more information about the internals. Do you have configured some unreachable ssh proxy/relay host on the old freebsd system (the error message seems to confirm this)?
    – jofel
    Jun 26, 2015 at 9:40
  • @jofel that's where I was heading, too. Jun 26, 2015 at 9:43
  • 2
    Please edit your original question and add the output of the ssh command to it, so it can be formatted properly.
    – dr_
    Jun 26, 2015 at 10:22
  • 1
    The problem is probably not ssh but the to me unknown proxy-connect program. Does the SOCKS proxy work from the old bsd machine if you are using it for other connections (web browsing etc.)? Can you ping from the old machine? Do you need the proxy or is a direct connection possible (seems to be same subnet)?
    – jofel
    Jun 26, 2015 at 10:26

1 Answer 1


I think the problem is related to a not-found matching private key. The ssh client sequentially tries several keys (from .ssh/) which are denied by the server, until a limit is reached. Try to specify a specific identity with

ssh -i .ssh/<correct key> ....

You must log in to answer this question.

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