git over ssh on windows
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 email@example.com: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
$ ssh -v firstname.lastname@example.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 [22.214.171.124] port 22. debug1: connect to address 126.96.36.199 port 22: Attempt to connect timed out without establishing a connection debug1: Connecting to bitbucket.org [188.8.131.52] 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
$ ssh -v email@example.com 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 [184.108.40.206] 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
the output is the following
Could not open a connection to your authentication agent.