zsh-users
 help / color / mirror / code / Atom feed
From: shawn wilson <ag4ve.us@gmail.com>
To: "Jesper Nygårds" <jesper.nygards@gmail.com>
Cc: Zsh Users <zsh-users@zsh.org>
Subject: Re: Ssh completion from ~/.ssh/config
Date: Wed, 8 Apr 2015 03:24:51 -0400	[thread overview]
Message-ID: <CAH_OBiehQntFP+v8uYLkxe7ghTAcbCtTjwe2EOnbxUy_NyrJLQ@mail.gmail.com> (raw)
In-Reply-To: <CABZhJg_R=a+TeSTjf51CqP6yhDZpTtKxjmbwkzqVRD97Li4q+g@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 712 bytes --]

On Apr 7, 2015 2:37 PM, "Jesper Nygårds" <jesper.nygards@gmail.com> 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)

  reply	other threads:[~2015-04-08  7:24 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-04-07 13:14 Jesper Nygårds
2015-04-07 14:27 ` Vadim A. Misbakh-Soloviov
2015-04-07 15:53   ` Mikael Magnusson
2015-04-07 18:37   ` Jesper Nygårds
2015-04-08  7:24     ` shawn wilson [this message]
2015-04-08 16:47     ` Bart Schaefer
2015-04-08 17:59       ` Jesper Nygårds
2015-04-08  6:42   ` Artur Penttinen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAH_OBiehQntFP+v8uYLkxe7ghTAcbCtTjwe2EOnbxUy_NyrJLQ@mail.gmail.com \
    --to=ag4ve.us@gmail.com \
    --cc=jesper.nygards@gmail.com \
    --cc=zsh-users@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).