ccontavalli / ssh-ident

Different agents and different keys for different projects, with ssh.
Other
963 stars 71 forks source link

SSH default options setting is incorrect in README #25

Closed adamglauser closed 8 years ago

adamglauser commented 8 years ago

If I create a .ssh-ident file with the setting matching the README, like

  # Options to pass to ssh by default.
  # If you don't specify anything, UserRoaming=no is passed, due
  # to CVE-2016-0777. Leave it empty to disable this.
  "SSH_DEFAULT_OPTIONS": "-oUseRoaming=no",

then I get the following error when running ssh-ident user@host.example.com:

Traceback (most recent call last):
  File "/home/aglauser/bin/ssh", line 979, in <module>
    sys.exit(main(sys.argv))
  File "/home/aglauser/bin/ssh", line 939, in main
    config = Config().Load()
  File "/home/aglauser/bin/ssh", line 462, in Load
    exec(compile(open(path).read(), path, 'exec'), LOG_CONSTANTS, variables)
  File "/home/aglauser/.ssh-ident", line 59
    "SSH_DEFAULT_OPTIONS": "-oUseRoaming=no",
                         ^
 SyntaxError: invalid syntax
ccontavalli commented 8 years ago

Thank you for the patch, I just merged the fix.