2016-09-14 2 views
-1

Je suis venu dans cette erreur:Quel nom d'utilisateur dois-je utiliser lors de la configuration d'OpenSSH?

$ git fetch ssh://[email protected]:XXXXX/ xxx && git checkout FETCH_HEAD 
Unable to negotiate with 192.168.XXX.XXX: no matching key exchange method found. Their offer: diffie-hellman-group1-sha1 
fatal: Could not read from remote repository. 

Voici ce qu'ils proposent sur le site OpenSSH:

For the case of the above error message, OpenSSH can be configured to enable the diffie-hellman-group1-sha1 key exchange algorithm (or any other that is disabled by default) using the KexAlgorithms option - either on the command-line:

ssh -oKexAlgorithms=+diffie-hellman-group1-sha1 [email protected] 

Il n'a pas eu lieu à l'auteur du document qu'il est pas évident [email protected] devrait être. Pourriez-vous remplir cette information pour moi? J'ai essayé mon login gerrit, ça n'a pas fonctionné.

Répondre

1
ssh -oKexAlgorithms=+diffie-hellman-group1-sha1 [email protected] 

Ceci est juste un exemple qui signifie «si votre essayaientssh [email protected]et a vu cette erreur, fournir l'option-oKexAlgorithms=+diffie-hellman-group1-sha1-ssh.

Lorsque vous utilisez ssh sous le capot de git , vous devez fournir cette option via le fichier ~/.ssh/config:

Host gerrit.XXXXX 
    KexAlgorithms +diffie-hellman-group1-sha1