Plink is throwing connection timeout error, even when ping works

I am trying to create SSH tunnel using plink, but I am getting connection error as: “FATAL ERROR: Network error: Connection timed out”

SSH port is not blocked, and target Kali machine is also reachable. What could be the reason for failed connection?

$ sudo ufw status
Status: active
To Action From


22 ALLOW Anywhere
22 (v6) ALLOW Anywhere (v6)

If you read through the threads on the boxes where this matters most, you will see a lot of discussion about SSH being blocked outbound from HTB.

You need to change the port.

Thank you!