Skip to content

Does Not Parse Includes When Using Symlink(s) #39

@norsemangrey

Description

@norsemangrey

The completion script does not work when the ~/.ssh/config file and/or included config files are symlinks. This should be looked at as it is pretty common case as sensitive SSH content is typically not version controlled in .dotfiles etc. and sourced elsewhere.

In my case I have a main ~/.ssh/config file symlinked from my dotfile repo. It has some overall config using Host * as well as couple of Include statements for configurations not part of the dotfile repo but symlinked from elsewhere, but relative to the ~/.ssh/config file:

Include config.home
Include config.other

Host *
  IdentitiesOnly yes
  HashKnownHosts = yes
  ServerAliveInterval 60
  ServerAliveCountMax 10

However, I also tried with the included configs as non-symlinks, but it still does not work as _parse_config_file looks for them in the main config target directory and not relative to the symlink.

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