0

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.

TL;DR:

SSH
1)Win->Old = ok
2)Win->New = ok
3)New->Old = ok
4)Old->New = no_go

What am I doing wrong?

  • What messages do you get in the security log from the ssh server on the new host? – roaima Jun 26 '15 at 9:39
  • 1
    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 '15 at 9:40
  • @jofel that's where I was heading, too. – roaima Jun 26 '15 at 9:43
  • 1
    Please edit your original question and add the output of the ssh command to it, so it can be formatted properly. – dr01 Jun 26 '15 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 192.168.0.1 from the old machine? Do you need the proxy or is a direct connection possible (seems to be same subnet)? – jofel Jun 26 '15 at 10:26
0

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> ....

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.