Cannot connect to SSH - connect refused

phuongdzu

Verified User
Joined
Jul 24, 2013
Messages
26
I have ubuntu server with Directadmin CP and running ~ 1 year without any problems
Now I cannot connect to SSH. Connect refused!

I use "Bitvise SSH Client" It says:
Connecton failed. FlowSocketConnector: Failed to connect to target address. Windows error 10060: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.

I still access Directadmin and see everything OK
- Show services: sshd is running
- Show/Edit file: etc/ssh/sshd_config still OK
Port 22
AllowUsers root

Please help to solve problem

Thanks
 
The firewall locked ssh port.
ISP support logged on directly to server and resolved problem
Closed!
 
Please tell me how do you solve this issue?

Are you logging in as the Root user via SSH? If you are trying to log in as a different user, they'll need to be added to AllowUsers.

If via root, is PermitRootLogin set to yes or no in /etc/ssh/sshd_config?

Also, is password authentication (PasswordAuthentication) enabled in /etc/ssh/sshd_config? Some may disable this upon configuring PubkeyAuthentication.

Are you running a firewall? If so, what kind? If CSF/LFD, try checking if the SSH port is open ( the port would need to be listed in TCP_IN and TCP_OUT):

grep TCP_ /etc/csf/csf.conf | grep 22
 
Back
Top