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.

1 Like

Thank you!

The “FATAL ERROR: Network error: Connection timed out” error when creating an SSH tunnel with plink could be due to firewall or security group settings, incorrect SSH configuration, network connectivity issues, or SSH server accessibility problems. Verify that the necessary ports are open, SSH is properly configured, there is network connectivity between the machines, and the SSH server is accessible.

Regards,
Rachel Gomez