I have set up github, bitbucket but I cannot seem to get gitlab working using ssh. When I attempt to clone I get,
ssh_exchange_identification: Connection closed by remote host
fatal: Could not read from remote repository
I removed my ssh key, and added it again to make certain it is correct. When I run:
ssh -vT git@gitlab.com
OpenSSH_7.6p1, LibreSSL 2.6.2
debug1: Reading configuration data /Users/diek/.ssh/config
debug1: /Users/diek/.ssh/config line 1: Applying options for *
debug1: /Users/diek/.ssh/config line 17: Applying options for gitlab.com
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 48: Applying options for *
debug1: Connecting to gitlab.com port 443.
debug1: Connection established.
debug1: identity file /Users/diek/.ssh/id_rsa type 0
debug1: key_load_public: No such file or directory
debug1: identity file /Users/diek/.ssh/id_rsa-cert type -1
debug1: Local version string SSH-2.0-OpenSSH_7.6
ssh_exchange_identification: Connection closed by remote host
I have reviewed a number of the problem tickets with similar issues, and read a number of SO Q&A but I cannot resolve the issue. Is there something else I can try?
I am on Mac High Sierra, git version 2.16.2., OpenSSH_7.6p1, LibreSSL 2.6.2
Solution, thanks to tech support:
The short of it is:
Host gitlab.com
Hostname altssh.gitlab.com
User git
Port 443