Report this

What is the reason for this report?

Connecting via ssh "Network Error: Connection refused"

Posted on November 4, 2014

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.



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

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.

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.

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.