Skip to content

Trim and remove leading and trailing double quotes from IdentityFile #61

@Dentrax

Description

@Dentrax

I recently noticed that ssh_config.Get() function does not remove leading and trailing double quotes from string. Eventually it leads to strange error:

open "/Users/furkan/bar/_config/user": no such file or directory

But this config does exist actually. Function should do something like strings.Trim(s, "\"") just before return.

Here is a minimal reproducible example:

Host foo
  IdentityFile "/Users/furkan/bar/_config/user"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions