Question

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

Posted July 6, 2021 179 views
Ubuntu 16.04

Hi,

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 idrsa keys and added the new one to the .ssh/authorizedkeys 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

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
1 answer

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