-
Type:
Bug
-
Resolution: Fixed
-
Priority:
Medium
-
Component/s: User - Legacy
I am having problems pushing changes to my repos using ssh. It just stopped working all of a sudden. I am on an OSX High Sierra.
Disclosure: I am at a public library internet at the moment.
#!bash ssh -vT git@bitbucket.org #output OpenSSH_7.6p1, LibreSSL 2.6.2 debug1: Reading configuration data /Users/[*username*]/.ssh/config debug1: /Users/[*username*]/.ssh/config line 2: Applying options for bitbucket.org debug1: Reading configuration data /etc/ssh/ssh_config debug1: /etc/ssh/ssh_config line 48: Applying options for * debug1: Connecting to bitbucket.org port 22. ssh: connect to host bitbucket.org port 22: Connection refused # I have replaced my username above with [*username*], since I don't want to share that publicly.
Below is my config. As stated, I have tried port 443, without much success.
#!bash Host bitbucket.org HostName bitbucket.org # Port 443 IdentityFile ~/.ssh/bitbucket UseKeychain yes Host github.com HostName github.com IdentityFile ~/.ssh/github UseKeychain yes
Test connection using port 443.
#!bash ssh -vT git@bitbucket.org #output OpenSSH_7.6p1, LibreSSL 2.6.2 debug1: Reading configuration data /Users/[*username*]/.ssh/config debug1: /Users/[*username*]/.ssh/config line 2: Applying options for bitbucket.org debug1: Reading configuration data /etc/ssh/ssh_config debug1: /etc/ssh/ssh_config line 48: Applying options for * debug1: Connecting to bitbucket.org port 443. debug1: Connection established. debug1: identity file /Users/[*username*]/.ssh/mybit type 0 debug1: key_load_public: No such file or directory debug1: identity file /Users/[*username*]/.ssh/mybit-cert type -1 debug1: Local version string SSH-2.0-OpenSSH_7.6 ssh_exchange_identification: Connection closed by remote host # I have replaced my username above with [*username*], since I don't want to share that publicly.
I have no issues pushing changes using ssh to my GitHub. I am on a public library network at the moment and thought it could be their firewall that is blocking the connection. Given my bitbucket repos are private, could this be the reason? Thanks.