簡體   English   中英

git ssh配置文件錯誤

[英]git ssh config file error

我正在嘗試在Mac中添加多ssh文件,我將ssh配置文件另存為:

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

從ssh配置的User指令中刪除冒號

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

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM