Skip to content

Compatibility with directives setting a different ssh-agent. #107

Open
@Msouza91

Description

@Msouza91

I use 1password and it has a feature to act my ssh-agent, I have my private keys saved there encrypted.
To enable that I have a rule atop of my ~/.ssh/config to ask ssh to use that agent to fetch keys, that is triggering the unrecognized character error some other people have mentioned.

The entry in question is:

Host *
  IdentityAgent "~/Library/Group Containers/2BUA8C4S2C.com.1password/t/agent.sock"
it gets me the error:
Error: Failed to parse SSH configuration file: SshConfig(InvalidInclude(InvalidIncludeError { line: "", details: HostsInsideHostBlock }))

Not sure if it is the space between words on the Group Containers directory or the quotation marks to solve for said space in the path, but it doesn't work for me at the moment, unless I revert to the standard way of having the private keys unencrypted using the default ssh agent. I have a hunch is it not being able to handle the spaces since I have seen another issue where removing spaces from the Host part of the declaration worked around this issue for another user.

Is it a technical blocker impeding escaping the space hidden characters in the parser? Why should that be an issue if the path is inside double quotes to denote that the space is literal?

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