1

I want to manage two GitHub accounts in a computer, a person, a company, but according to the online tutorial finished, suggesting that the "/c/Users/Gzb/.ssh/config: line 1: Bad configuration error option: 357273277host /c/Users/Gzb/.ssh/config: terminating, 1 bad configuration options ", that is configuration error, but did not find where the error, ask you advice. My.Ssh/config is written like this

Host compony.github.com
HostName github.com
PreferredAuthentications publickey
IdentityFile ~/.ssh/id_rsa
Host personal.github.com
HostName github.com
PreferredAuthentications publickey
IdentityFile ~/.ssh/id_rsa_my`
Sajib Khan
  • 22,878
  • 9
  • 63
  • 73
crane168
  • 11
  • 3
  • You’ve saved a BOM in your `.ssh/config`. In your editor’s Save As dialog, select “UTF-8 without BOM” or something like that. – Ry- Jul 20 '17 at 02:24
  • I tried, but there was $SSH -T git@compony.github.com /c/Users/Gzb/.ssh/config:, line, 1:, Bad, configuration, option:, 357273277host /c/Users/Gzb/.ssh/config:, terminating, 1, bad, configuration, options – crane168 Jul 20 '17 at 02:33
  • Follow the instructions in the duplicate and overwrite your `.ssh/config` with a non-BOM version. Save it in Notepad as ASCII if you have to. – Ry- Jul 20 '17 at 02:37
  • Thank you very much. I made it – crane168 Jul 20 '17 at 02:49

0 Answers0