2016-10-31 5 views
0

Ich versuche Multi ssh-Datei in meinem Mac hinzufügen, speichere ich meine ssh-Konfigurationsdatei als:git ssh-Konfigurationsdatei Fehler

Host github 
    HostName github.com 
    User fizix100 
    IdentityFile ~/.ssh/id_rsa_github 

aber es hat nicht funktioniert, und zeigen Sie mir einen Fehler, wenn ich ist versucht, Remote-Dateien zu ziehen:

git -c diff.mnemonicprefix=false -c core.quotepath=false -c credential.helper=sourcetree fetch origin 
/Users/fengzhenxing/.ssh/config: line 3: Bad configuration option: user:fizix100 
/Users/fengzhenxing/.ssh/config: terminating, 1 bad configuration options 
fatal: Could not read from remote repository. 
Please make sure you have the correct access rights 
and the repository exists. 
Completed with errors, see above 
+0

Probieren Sie neue Konfigurationsdatei, als Fehlermeldung i s noch alt - '/Users/fengzhenxing/.ssh/config: Zeile 3: Falsche Konfigurationsoption: Benutzer: fizix100' –

+0

Welche Fehlermeldung haben Sie jetzt, dass Sie Ihre SSH-Konfigurationsdatei bearbeitet haben? – VonC

+0

@ fizix100 Akzeptieren Sie die Antwort, wenn es für Sie funktioniert. –

Antwort

1

entfernen Doppelpunkt aus User Direktive Ihrer ssh Config

Host github 
    HostName github.com 
    User fizix100 
    IdentityFile ~/.ssh/id_rsa_github