2016-10-31 10 views
0

私は私のように私のsshのconfigファイルを保存し、私のMacでマルチsshのファイルを追加しようとしています:のgitのsshのconfigファイルエラー

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

が、それは仕事、そしてときに私私にエラーを示しませんでしたリモートファイルを引くしようとしている:

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

エラーメッセージとして、新しいコンフィギュレーション・ファイルを使用してみてくださいI '/Users/fengzhenxing/.ssh/config:3行目:不正な設定オプション:user:fizix100' –

+0

ssh設定ファイルを編集したところで、どのようなエラーメッセージが表示されましたか? – VonC

+0

@ fizix100それがあなたのために働く場合、答えを受け入れます。 –

答えて

1

あなたのsshの設定のUserディレクティブからコロンを削除

Host github 
    HostName github.com 
    User fizix100 
    IdentityFile ~/.ssh/id_rsa_github 
関連する問題