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.
The completion script does not work when the
~/.ssh/configfile 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/configfile symlinked from my dotfile repo. It has some overall config usingHost *as well as couple ofIncludestatements for configurations not part of the dotfile repo but symlinked from elsewhere, but relative to the~/.ssh/configfile:However, I also tried with the included configs as non-symlinks, but it still does not work as
_parse_config_filelooks for them in the main config target directory and not relative to the symlink.