SSH - port 22: Operation timed out

Dec 5, 2021
6
2
3
Belgium
cPanel Access Level
Website Owner
Not sure in which category I had to post this question, but here it is:

I am trying to connect to my server through ssh from my Mac.
I tried ssh [email protected]. I also tried the username instead of root, I've tried the ip addres instead of the domaine name; but I always got the same message
`ERROR: ssh: connect to host ksadebiekorf.be port 22: Operation timed out`

SSH-acces is shown in cpanel, so it should work. Not sure what I am missing here? Haven't been able to find an answer anywhere, is there anyone who can help with this?
 

cPanelAnthony

Administrator
Staff member
Oct 18, 2021
1,046
111
118
Houston, TX
cPanel Access Level
Root Administrator
Hello! It sounds like you're either using the wrong SSH port or are blocked in the server's firewall. From your local machine, what happens if you install and run nmap to your server's IP address on port 22? Replace the fake IP with your server's IP. Once again, you would run this from the local machine that's having connection issues.

Code:
nmap 000.000.000.000 -p 22

How to use nmap
 
Dec 5, 2021
6
2
3
Belgium
cPanel Access Level
Website Owner
Hi! I get the following output:
Bash:
Starting Nmap 7.92 ( https://nmap.org ) at 2021-12-07 20:24 CET
Nmap scan report for server (x.x.x.x)
Host is up (0.0076s latency).

PORT   STATE    SERVICE
22/tcp filtered ssh

Nmap done: 1 IP address (1 host up) scanned in 0.59 seconds
 
Last edited by a moderator:

cPanelAnthony

Administrator
Staff member
Oct 18, 2021
1,046
111
118
Houston, TX
cPanel Access Level
Root Administrator
Hi! I get the following output:
Bash:
Starting Nmap 7.92 ( https://nmap.org ) at 2021-12-07 20:24 CET
Nmap scan report for server (x.x.x.x)
Host is up (0.0076s latency).

PORT   STATE    SERVICE
22/tcp filtered ssh

Nmap done: 1 IP address (1 host up) scanned in 0.59 seconds
This indicates that there is a firewall issue. "filtered" indicates the port is refusing your connection. You should check with your systems administrator, web hosting provider, etc... To see if your IP may be blocked.