Question

Connecting via ssh "Network Error: Connection refused"

Posted November 4, 2014 15.1k views

Hello, i’ve followed this guide: https://www.digitalocean.com/community/tutorials/how-to-use-filezilla-to-transfer-and-manage-files-securely-on-your-vps
and this guide: https://www.digitalocean.com/community/tutorials/how-to-create-ssh-keys-with-putty-to-connect-to-a-vps
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.

×
1 answer

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.

Submit an Answer