-
Type:
Bug
-
Resolution: Won't Fix
-
Priority:
Highest
-
Component/s: User - SSH Keys
I uninstalled Git, re-installed the latest version. setup ssh followed https://confluence.atlassian.com/display/BITBUCKET/Set+up+SSH+for+Git
But there are some errors. Anyone can help?
I have docs repo in my bitbucket
$ git clone git@bitbucket.org:nickleefly/docs.git Cloning into 'docs'... ssh_exchange_identification: Connection closed by remote host fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists.
Below is some information
#!shell $ ssh -v git@bitbucket.org OpenSSH_4.6p1, OpenSSL 0.9.8e 23 Feb 2007 debug1: Reading configuration data /c/Users/asus/.ssh/config debug1: Applying options for bitbucket.org debug1: Connecting to bitbucket.org [207.223.240.182] port 22. debug1: connect to address 207.223.240.182 port 22: Attempt to connect timed out without establishing a connection debug1: Connecting to bitbucket.org [207.223.240.181] port 22. debug1: Connection established. debug1: identity file /c/Users/asus/.ssh/id_rsa type 1 debug1: Remote protocol version 2.0, remote software version OpenSSH_5.3 debug1: match: OpenSSH_5.3 pat OpenSSH* debug1: Enabling compatibility mode for protocol 2.0 debug1: Local version string SSH-2.0-OpenSSH_4.6 debug1: SSH2_MSG_KEXINIT sent debug1: SSH2_MSG_KEXINIT received debug1: kex: server->client aes128-cbc hmac-md5 none debug1: kex: client->server aes128-cbc hmac-md5 none debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<1024<8192) sent debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP debug1: SSH2_MSG_KEX_DH_GEX_INIT sent debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY debug1: Host 'bitbucket.org' is known and matches the RSA host key. debug1: Found key in /c/Users/asus/.ssh/known_hosts:1 debug1: ssh_rsa_verify: signature correct debug1: SSH2_MSG_NEWKEYS sent debug1: expecting SSH2_MSG_NEWKEYS debug1: SSH2_MSG_NEWKEYS received debug1: SSH2_MSG_SERVICE_REQUEST sent Read from socket failed: The connection was aborted
then I added
Host bitbucket.org IdentityFile ~/.ssh/id_rsa Port 443
into ~\.ssh\config file
then
#!shell
$ ssh -v git@bitbucket.org
OpenSSH_4.6p1, OpenSSL 0.9.8e 23 Feb 2007
debug1: Reading configuration data /c/Users/asus/.ssh/config
debug1: Applying options for bitbucket.org
debug1: Connecting to bitbucket.org [207.223.240.182] port 443.
debug1: Connection established.
debug1: identity file /c/Users/asus/.ssh/id_rsa type 1
ssh_exchange_identification: Connection closed by remote host
~/.ssh/id_rsa.pub had been added into my account/ ssh`
when i run ssh-add -l
the output is the following
Could not open a connection to your authentication agent.