Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Ssh completion from ~/.ssh/config
- X-seq: zsh-users 20110
- From: shawn wilson <ag4ve.us@xxxxxxxxx>
- To: Jesper Nygårds <jesper.nygards@xxxxxxxxx>
- Subject: Re: Ssh completion from ~/.ssh/config
- Date: Wed, 8 Apr 2015 03:24:51 -0400
- Cc: Zsh Users <zsh-users@xxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=z5oV5V4wUrSnBdATngmX2h5iSDDKI3kVQozWsppE44Y=; b=k4oowIzgRjet2F528gBPiEd26opnAUIXwfVH3gLTTB0HNMdpSChxkIFAWDwurTSWFN 5FAuXtMSGuDwINJe9/3L5Q0KTwZcTa1FZc/ODSt0kRSyDQ/Mo5ALvrPL9x8vP/LrXBoh xW38k6vtvEJdeFQRF3pE+w1Zwm2k33EonsoAUBr5bpgRJN97+UXuo96LQ7KnnoKso0JC +5nnZxwyi4CdenWAJy6DxxHh/uIUUeveBQlBAWRpWOFuNYWbQWhhSJk/wzhqRAn6DWV9 sprYi9dJhsZWsq9SBDKWpKeiNTlN3E/Nc9G0WGq2z/qiEEk1zQg84FiwMzbznWaL+vsF hJYA==
- In-reply-to: <CABZhJg_R=a+TeSTjf51CqP6yhDZpTtKxjmbwkzqVRD97Li4q+g@mail.gmail.com>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <CABZhJg-8fQyOsYLHwYKoDx8DxOsReeZzfhtoi5fV_DDUQ-ziZA@mail.gmail.com> <1797284.9M4pHoONQN@note> <CABZhJg_R=a+TeSTjf51CqP6yhDZpTtKxjmbwkzqVRD97Li4q+g@mail.gmail.com>
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