ssh: connection refused

cDGo

Verified User
Joined
Sep 21, 2012
Messages
84
Hi, I've got a backup server to which I scp-ing my Directadmin system backups to.

This works fine for all servers, exept for the latest server.
It keeps telling me that the Connection is refused.
As all other server still have access to the backup server, it must be an issue on the new centos 7/DA server.

I've been through the installation many times allready, but obviously missing the critical step to get this working.
I can ping the backup server, but can't ssh to it.

Any help with this issue is appreciated
 
check if a firewall is running
Code:
systemctl status firewalld

If so, disable the firewall temporary and check if the server connect through ssh
Code:
systemctl stop firewalld
 
Hi Fred,

Thanks for the reply.

Some how the firewalld didn't got started after reboot on the client server.
So great advice!
You solved the issue.
 
Update

The firewalld was inactive because of the installation of CSF.
After stopping firewalld and starting csf again, same problem: Connection refused.

So adding the backup server's IP in csf Quick allow list, fixed the connection.
 
You might want to change it so the backupserver pulls te backups from your directadmin server. If your directadmin server gets compromised it's pretty easy to get access to the backupserver (because the DA server saves the password and or ssh-key locally).
 
Hi Sysdev,

Thanks for pointing this out.
I think that sounds like a good idea.
But that will be some scripting needed from the backup server to get the backup files.
And that's just out of reach for me.
 
Back
Top