Question

Connecting via ssh "Network Error: Connection refused"

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.

Show comments

Submit an answer

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!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

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.