SSH Server Connection Issues

rupesh690

New Member
Joined
Jan 27, 2022
Messages
5
Reaction score
1
Credits
60
Hello Friends,
I wanted to ask, when I am trying to establish a connection with server side machine through SSH connection, I am unable to connect and receiving an error "Unable to connect". What should, I do?

Thanking you in advance.
 


Good ole ssh, can be a little tedious on some distro's.

1. Is the sshd daemon running on the target server? ( systemctl status -l sshd )
2. Is the firewall blocking ssh ? ( this is different for different distro's, but for fedora ... firewall-cmd --list-services )

Usually it's one of those two things.

3. Who are you ssh'ing as? Some distro's block root ssh by default. ( this can be changed )
4. Can you ping the target server? Do you have network connectivity?

This may seem odd, and unrelated, but it's fixed ssh for me a couple of times over the years.

5. Do you have either DNS, or a host file on both the ssh client and the ssh server?

If none of this works, try...

ssh -vvv [email protected] ( example ) ssh -vvv [email protected]
and send output. ( You may have to edit out a few things, if your user name reveals your real name )
 

Members online


Latest posts

Top