[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: 23.0.50; pcmpl-ssh-hosts breaks when known_hosts file has a space in
From: |
Phil Hagelberg |
Subject: |
Re: 23.0.50; pcmpl-ssh-hosts breaks when known_hosts file has a space in the wrong place |
Date: |
Thu, 10 Apr 2008 12:52:50 -0700 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) |
Michael Albinus <address@hidden> writes:
>> Recently it's come to my attention that there's already a function that
>> does this in tramp: tramp-parse-hosts will return a list of user/host
>> pairs, though on my machine it also returns some key signatures. (I
>> imagine it could use some debugging as well.)
>
> Do you mean tramp-parse-shosts? However, this function cannot work
> when hostnames in known_hosts are stored in a hashed form like this:
>
> |1|qgSiQ74dNQtRpDaIQHcQgREbNgs=|jwi3ho8zMuJlFvEEiyufB/wVHeU= ssh-rsa
> AAAAB3NzaC1yc2EAAAABIwAAAQEAqIGXkE+SgOSOmLqSQHSpsZEVm9Nm2lDzZ0h2RVvtiTzluHYIyuIkMPANvoeFhtmTpXbIllkcXoTUYCCFBc0fpO4O+nTsZmqY0kr52HCmMfMmTvhi+4dlKeLp8UBSaso9XODohFqYyzbMna1sG9S5osSKFHzrKfh4IdLr1fspw97JhSyY1/hzWL2xRR+ljtlwRs3Z1evyasH1UhI/8zyTGv5dUUgCZiNcZyMS5va2FsUChkE2Xjoh1zmDzSmtN62Me7kZCg3+FftH8PT3WMvaGBfLRPfKjwJ3y2KkbodU2z4XMBkFMXNRL9/d5DPkrDc+4vFmKRieKVWBBwr87k7o1Q==
Yes, this is a known limitation of both libraries. It's mentioned in a
docstring in pcmpl-unix.el that you must add "HashKnownHosts no" to your
SSH config to make it work.
>> Clearly this shows some redundancy that should be removed. But I'm not
>> sure what the best way to go about this is. I don't think pcomplete
>> should require tramp, nor vice-versa. Perhaps it should be spun out into
>> a third file that the other two require? I don't feel I have a great
>> grasp on how files are organized within Emacs.
>
> In principle, I agree. But Tramp has also a life outside GNU Emacs 23 ...
Ah; in that case perhaps they should both be left alone.
-Phil