From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5559 invoked by alias); 8 Apr 2015 07:24:53 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 20110 Received: (qmail 11106 invoked from network); 8 Apr 2015 07:24:52 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 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== MIME-Version: 1.0 X-Received: by 10.182.24.133 with SMTP id u5mr30162962obf.27.1428477891163; Wed, 08 Apr 2015 00:24:51 -0700 (PDT) In-Reply-To: References: <1797284.9M4pHoONQN@note> Date: Wed, 8 Apr 2015 03:24:51 -0400 Message-ID: Subject: Re: Ssh completion from ~/.ssh/config From: shawn wilson To: =?UTF-8?Q?Jesper_Nyg=C3=A5rds?= Cc: Zsh Users Content-Type: multipart/alternative; boundary=001a11c3086445bd890513316d55 --001a11c3086445bd890513316d55 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Apr 7, 2015 2:37 PM, "Jesper Nyg=C3=A5rds" wr= ote: > 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) --001a11c3086445bd890513316d55--