Connecting via ssh "Network Error: Connection refused"

Posted November 4, 2014 17.3k views

Hello, i’ve followed this guide:
and this guide:
but i cant connect via putty or filezilla it gives me the same error.
If you need more info please let me know.

1 comment

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
2 answers

Ouch dude. This is something that happened to me too often.

First off, try pinging your server. Does it respond?
Assuming it does, hop on your VNC access and run:

/usr/bin/ssh status

If it responds with:

[ ok ] ssh is running

then you’re having a bad day. Check /var/log/auth.log, does it say anything about turning you down for not having an SSH key?

If it doesn’t, please provide your history (either run “history > history.txt” or “cat ~/.bash_history > history.txt”) and Paste it. There’s a bunch of possibilities, ranging from things as simple as chmoding incorrectly.