From: Glenn Morris <rgm@gnu.org>
To: Phil Hagelberg <phil@hagelb.org>
Cc: Emacs developers <emacs-devel@gnu.org>
Subject: Re: 23.0.50; pcmpl-ssh-hosts breaks when known_hosts file has a space in the wrong place
Date: Mon, 24 Mar 2008 16:28:06 -0400 [thread overview]
Message-ID: <18408.3798.278043.611553@fencepost.gnu.org> (raw)
In-Reply-To: <87iqzgx77t.fsf@hagelb.org>
Please let's keep this on the list.
Phil Hagelberg wrote (on Fri, 21 Mar 2008 at 11:28 -0700):
> Glenn Morris <rgm@gnu.org> writes:
>
> >> The function pcmpl-ssh-hosts (which is invoked when you launch
> >> eshell and type "ssh host<tab>") fails when the last entry in your
> >> pcmpl-ssh-known-hosts-file has a space after the hostname instead of
> >> a comma.
> >
> > I don't understand what you mean. Do you mean they changed the format
> > from this:
> >
> > host1,host1a,host1b,... bits exponent modulus comment
> >
> > to this
> >
> > host1 host1a host1b ... bits exponent modulus comment
>
> No, my understanding is that every line of the known_hosts file consists
> of either:
>
> * A hostname, a separator, an IP address, a separator, then a
> description of the key
> * An IP address, a separator, then a description of the key
> * A hostname, a separator, then a description of the key
I quote from `man sshd' on my RHEL5 system:
SSH_KNOWN_HOSTS FILE FORMAT
...
Each line in these files contains the following fields: hostnames,
bits, exponent, modulus, comment. The fields are separated by spaces.
Hostnames is a comma-separated list of patterns...
This is "OpenSSH_4.3p2, OpenSSL 0.9.8b 04 May 2006".
> The problem the patch addresses is that the separator can be a comma
> *or* a space. But it's not that complicated because what we really want
> is just whatever appears before the first separator.
>
> I don't think we need to include the IP address for the first case above
> since I believe once you do refer to a host by its IP address, it will
> create another entry in the file that refers only to the IP address.
My own known_hosts file contains many entries like this:
host1.full.domain,host1,host1-alias,host-generic,ip1 ssh-rsa ...
host2.full.domain,host2,host2-alias,host-generic,ip2 ssh-rsa ...
There's nothing to say that the first entry is the only one I'll ever
want to complete on (indeed it's usually one of the other forms).
next prev parent reply other threads:[~2008-03-24 20:28 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-03-19 21:14 23.0.50; pcmpl-ssh-hosts breaks when known_hosts file has a space in the wrong place Phil Hagelberg
2008-03-20 17:51 ` Glenn Morris
[not found] ` <87iqzgx77t.fsf@hagelb.org>
2008-03-24 20:28 ` Glenn Morris [this message]
2008-04-09 16:28 ` Phil Hagelberg
2008-04-09 19:29 ` Michael Albinus
2008-04-10 19:52 ` Phil Hagelberg
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=18408.3798.278043.611553@fencepost.gnu.org \
--to=rgm@gnu.org \
--cc=emacs-devel@gnu.org \
--cc=phil@hagelb.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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.