I have done below mentioned things and it started working.
vim ~/.ssh/config
Add these lines and save it.
Host bitbucket.org
Hostname altssh.bitbucket.org
Port 443
For Windows:
-
Go to the place where your .ssh folder is located (
run %USERPROFILE%
). -
open the .ssh folder and create a file with the name config without any extension.
-
Paste the below content and save it.
Host github.com Hostname ssh.github.com Port 443 Host bitbucket.org Hostname altssh.bitbucket.org Port 443