Failed to connect to bitbucket.org port 443: Connection timed out code example
Example: ssh connect to host bitbucket.org port 22: Connection timed out
Use your favorite terminal
vim ~/.ssh/config
Add these lines and save it.
Host bitbucket.org
Hostname altssh.bitbucket.org
Port 443