SSH is refused from a new server but not from old ones


I have a system based on two servers: the production is on DigitalOcean (Ubuntu 16.04.7 LTS) and the test is on another hosting.

The development connects to the production server once a day to download the MySQL data so that I can keep a backup and run my test on real data – even if it is 24 hours “old”.

Today I had to change the test server so I generated new id_rsa keys and added the new one to the .ssh/authorized_keys keys on the DigitalOcean server.

Unfortunately I cannot connect from the new server as I always get a “Connection refused” error.

There is no firewall configured.

I can still connect from my personal computer, I think everything is in order on the DigitalOcean server and I cannot figure out what can prevent my connection from the new server.

I’m not an expert on this matter, hopefully someone can help me in fixing this?

Thank you so much! Hugh

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.

Hi there,

What I could suggest is to add the -vvv flag to your SSH command so that you could get some verbose output and see why the connection is being refused.

The SSH command would look like this:

ssh -vvv root@your_ip_address

Feel free to share the output here after removing any sensitive information. Regards, Bobby