5

When cloning a repo, I get this error message

/c/Users/username/.ssh/config: line 2: Bad configuration option: \240\240user /c/Users/username/.ssh/config: line 3: Bad configuration option: \240\240identityfile

Jonathan Allen
  • 68,373
  • 70
  • 259
  • 447

1 Answers1

17

When you paste the same config file in from the documentation, it uses character 240 instead of a normal space.

To fix, delete the leading spaces before each indented line and replace with normal spaces.

If on Windows, use Notepad++ so that you can specify Linux line endings.

Jonathan Allen
  • 68,373
  • 70
  • 259
  • 447
  • 1
    For Unix-like systems (e.g., Linux, macOS, BSD), you can use the `sed` command to replace character 240 (non-breaking space) with normal spaces in the config file: `sed 's/\xC2\xA0/ /g' input_config_file > output_config_file` – Viacheslav Plekhanov Apr 27 '23 at 12:13
  • 1
    I literally deleted the spaces and put a tab and it worked. Thanks a lot – Juan Joya May 10 '23 at 18:39