posh-sshell icon indicating copy to clipboard operation
posh-sshell copied to clipboard

Does not work with SSH `Include`

Open egelja opened this issue 2 years ago • 1 comments

System Details

  • posh-sshell version/path: 0.3.1 ~\Documents\WindowsPowerShell\Modules\posh-sshell\0.3.1
  • PowerShell version: 5.1.22000.832
  • OS: Microsoft Windows NT 10.0.22000.0
  • OpenSSH / Putty version: OpenSSH_for_Windows_8.1p1, LibreSSL 3.0.2

Issue Description

I've broken my SSH config into a few files, and bring them together into .ssh/config using the Include directive. However, when running Connect-SSH, posh-sshell only picks up the hosts I've directly listed in my config file. It should follow the Includes and find the hosts from those files too.

egelja avatar Sep 07 '22 17:09 egelja

The config file parser that's included as part of posh-sshell is only a limited/simple parser of the root config file, and it doesn't follow links to included files.

I'm no longer working on posh-sshell as I don't use powershell/pwsh anymore (and haven't for several years) so this isn't something that I'll be adding I'm afraid.

JeremySkinner avatar Sep 07 '22 20:09 JeremySkinner