From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Phil Hagelberg Newsgroups: gmane.emacs.devel Subject: Re: Pcompletion for ssh and scp Date: Fri, 07 Dec 2007 11:09:04 -0800 Message-ID: <85hciu9van.fsf@evri.com> References: <85d4tmm6pc.fsf@evri.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1197054559 32720 80.91.229.12 (7 Dec 2007 19:09:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 7 Dec 2007 19:09:19 +0000 (UTC) Cc: emacs-devel@gnu.org To: Edward O'Connor Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Dec 07 20:09:29 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1J0iZk-0003uY-46 for ged-emacs-devel@m.gmane.org; Fri, 07 Dec 2007 20:09:28 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1J0iZT-0004qp-2p for ged-emacs-devel@m.gmane.org; Fri, 07 Dec 2007 14:09:11 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1J0iZQ-0004oB-6k for emacs-devel@gnu.org; Fri, 07 Dec 2007 14:09:08 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1J0iZP-0004nH-SO for emacs-devel@gnu.org; Fri, 07 Dec 2007 14:09:07 -0500 Original-Received: from dsl017-040-091.sea1.dsl.speakeasy.net ([69.17.40.91] helo=zimbra.evri.com) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1J0iZO-00004w-N9 for emacs-devel@gnu.org; Fri, 07 Dec 2007 14:09:07 -0500 Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.evri.com (Postfix) with ESMTP id 3DAD5276E0; Fri, 7 Dec 2007 11:08:15 -0800 (PST) X-Virus-Scanned: amavisd-new at X-Spam-Score: -2.509 Original-Received: from zimbra.evri.com ([127.0.0.1]) by localhost (zimbra.evri.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id dH7Zr0aW8p5T; Fri, 7 Dec 2007 11:08:14 -0800 (PST) Original-Received: from imp (dsl017-040-082.sea1.dsl.speakeasy.net [69.17.40.82]) by zimbra.evri.com (Postfix) with ESMTP id ADB50276FC; Fri, 7 Dec 2007 11:08:14 -0800 (PST) In-Reply-To: (Edward O'Connor's message of "Fri, 07 Dec 2007 10:39:40 -0800") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.50 (gnu/linux) X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:84847 Archived-At: Edward O'Connor writes: > Could you also complete from 'Host' entries in ~/.ssh/config? I have > lots of shortcut hosts in there like so: I thought about this, but then I asked myself: is it likely that you'll have something in your config file that hasn't been added to your known_hosts file? It seems like this is an edge case that only occurs when you copy a config file to a fresh machine. Once you've SSHed to that machine, an entry will get added to known_hosts. So for this entry: > | Host andromeda > | HostName andromeda.dapyr.net scanning the config file doesn't get you anything. You type andr TAB and you get the right host, except for the first time before it's been added to known_hosts. For this one though; that won't work since the alias for the hostname doesn't resemble the hostname at all. > | Host rakim > | HostName cfhp.org However, this seems like an edge case. I've never come across a situation like this, and I don't imagine it's very common. If you want to write a patch that will allow config file parsing, that'd be great, but it doesn't really interest me since the value/effort ratio seems quite low. -Phil