Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Ssh completion from ~/.ssh/config



On Apr 7, 2015 2:37 PM, "Jesper Nygårds" <jesper.nygards@xxxxxxxxx> wrote:
>

Just an FYI

> I prefer .ssh/config over .ssh/known_hosts.
>

Host *foo
  Identityfile a
Host*bar*
  Identityfile b
Host baz*
  Identityfile c

ssh barfoo
Identityfile would be a, b
ssh bazfoo
Identityfile would be a, c
ssh bazbarfoo
Identityfile would be a, b, c

So if you parse the config for completion date, if I type :
ssh bazbar
You'll need to have both bazbar, and bazbarfoo. The is along with multiple
names being allowed per host.

(The example is obviously useless and whereas most options are first come,
Identityfile is additive which is why I used it here - for simplicity of
the example)


Messages sorted by: Reverse Date, Date, Thread, Author