#3712 can't access to git by ssh (ssh to people.fedoraproject.org works)
Closed: Fixed Opened by stransky.

= bug description =

I can't get access to git. I regenerated my ssh keys but it does not help. It's on Fedora 18 system. I have two Fedora 18 systems and both show the same bug:

$ git clone -v ssh://stransky@pkgs.fedoraproject.org/xulrunner
Cloning into 'xulrunner'...
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.

$ ssh -v stransky@pkgs.fedoraproject.org
OpenSSH_6.1p1, OpenSSL 1.0.1e-fips 11 Feb 2013
debug1: Reading configuration data /home/komat/.ssh/config
debug1: /home/komat/.ssh/config line 6: Applying options for *.fedoraproject.org
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 50: Applying options for *
debug1: Connecting to pkgs.fedoraproject.org [209.132.181.4] port 22.
debug1: Connection established.
debug1: identity file /home/komat/.ssh/id_rsa_fedora type 1
debug1: identity file /home/komat/.ssh/id_rsa_fedora-cert type -1
ssh_exchange_identification: Connection closed by remote host

Fedora people works as expected:
[komat@localhost CVS]$ ssh -v stransky@people.fedoraproject.org
OpenSSH_6.1p1, OpenSSL 1.0.1e-fips 11 Feb 2013
debug1: Reading configuration data /home/komat/.ssh/config
debug1: /home/komat/.ssh/config line 6: Applying options for .fedoraproject.org
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 50: Applying options for *
debug1: Connecting to people.fedoraproject.org [152.19.134.191] port 22.
debug1: Connection established.
debug1: identity file /home/komat/.ssh/id_rsa_fedora type 1
debug1: identity file /home/komat/.ssh/id_rsa_fedora-cert type -1
debug1: Remote protocol version 2.0, remote software version OpenSSH_5.3
debug1: match: OpenSSH_5.3 pat OpenSSH_5

debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_6.1
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client aes128-ctr hmac-md5 none
debug1: kex: client->server aes128-ctr 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: Server host key: RSA 07:d4:02:db:9f:70:d5:2d:7f:1b:6a:df:83:73:95:1d
debug1: Host 'people.fedoraproject.org' is known and matches the RSA host key.
debug1: Found key in /home/komat/.ssh/known_hosts:54
debug1: ssh_rsa_verify: signature correct
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: Roaming not allowed by server
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey
debug1: Next authentication method: publickey
debug1: Offering RSA public key: /home/komat/.ssh/id_rsa_fedora
debug1: Server accepts key: pkalg ssh-rsa blen 279
debug1: Authentication succeeded (publickey).
Authenticated to people.fedoraproject.org ([152.19.134.191]:22).


You likely tried too many times with an incorrect key, etc and got added to denyhosts.

Can you provide (either here or drop me an email or ping me on irc (nirik)) and I will remove your denyhosts block.

This is all resolved now.

Metadata