When running bitbucket pipeline ssh connection is throwing "ssh: connect to host ... port 22: Connection timed out" error message.
Port 22 is open in the firewall on the remote machine.
The remote machine is also added to the known hosts in Pipeline settings.
The same command successfully executes from local Windows machine via PuTTy or Linux virtual machine.