Whenever I try to connect to a remote server using SSH, I get an error "ssh: connect to host x.x.x.x port 22: Connection refused"

I didn't install a Firewall or something similar. I know for sure the server is online and my credentials are valid - I am able to connect to the server using my (Android) phone or other devices.

Is there any way that connections are blocked by the System? This also happens for some other applications on different ports and servers.

Do you have any ideas how I can troubleshoot the problem? I can browse the Internet without any problems, but SSH and some other applications can't connect to different servers with different ports, including a Usenet client.

Happens on a Macbook Pro Late 2011 using MacOSX Yosemite.

If you need any more information, don't hesitate to ask.

1 Answer 1


Problem was some weird DNS servers that have been configured. No new DNS names could be resolved. That's why it seemed that surfing the web does work - My usual web pages did work, but new ones did not.

I replaced the DNS servers with OpenDNS and everything works now as expected.

I don't know how the DNS servers were configured, but this resolved the issue.

You must log in to answer this question.

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