Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Getting Bad configuration option: \377\376h

I am setting my systems for codecommit. but getting following error

I followed the below link : https://docs.aws.amazon.com/codecommit/latest/userguide/setting-up-ssh-windows.html

/c/Users/Prasanna/.ssh/config: line 1: Bad configuration option: \377\376h /c/Users/Prasanna/.ssh/config: terminating, 1 bad configuration options

here is the config file Host git-codecommit.*.amazonaws.com User ******** IdentityFile ~/.ssh/codecommit_rsa

Am I missing anything to configure ?

like image 344
Prasanna Wagh Avatar asked Apr 15 '19 16:04

Prasanna Wagh


1 Answers

You probably have some illegal characters in the config file. I had this problem while creating a config file on Windows. Unfortunately, simply opening the file in a Windows text editor may not show the illegal characters.

I was able to find this problem by running cat filename from a Bash prompt in Windows (git bash) and was able to fix it by running dos2unix filename in git bash. The same may work for you as well.

like image 103
Antimony Avatar answered Sep 22 '22 06:09

Antimony