ssh: connect to host port 22: Connection refused 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