[IPython-dev] host completer patch

Steven H. Rogers steve at shrogers.com
Mon Jul 16 11:51:37 EDT 2007


On Mon, July 16, 2007 00:34, Fernando Perez wrote:
> Hi Gael,
>
> On 7/14/07, Gael Pasgrimaud <gawel at afpy.org> wrote:
>> Hi,
>>
>> I'm using ipython -p sh. It has very cool features. Thanks for this !
>>
>> Unfortunately, when i need to ssh or scp something ipyhton can't
>> complete my host name.
>>
>> So, here is a small completer to get a list of hosts from ~/.ssh/
>> known_hosts. The patch is attached to this mail.
>>
>> Hope you like this feature !
>
> Thanks for your patch, but I have a question: is it really going to be
> useful for much longer?  I think that SSH installations these days
> have switched to fully encrypted hostnames in known_hosts for security
> reasons.  For example, this is what my known_hosts file looks like:
>
> |1|b4c6JaeXDN5RNoIY4FPJHC8/90c=|7BQAEHpygIjFv1Yj3h+1EMbVhq8= ssh-rsa
> AAAAB3NzaC1yc2EAAAABI
> wAAAQEA4n38wYb/Xcw2huw/3JwiL4nqZSup2n1byzID2WU6a6RmizbW/h5kBOHmzVajClPjxKy53klszKCBKcFeioY
> Jof6qXpkrw0ZgpZVkDMbzyw4mvI9UtYLKhPw8iX9R3Jlv6RWnccqvSmz0OGz3GQY/ZDAczNahCapTyHYaYC/j/7BZT
> xcxzG1odF+KQuA4fvqIhAD+Xl1kp4zDCWh6uRjqNQarNYUuGnlYgJpv4Fa6hAIxBc7TaU3R6mJSwett5kpCEd4c1oy
> +4uUxsV9M6QlgUOGTUQrAB09KDJqTY0CAGfBGXl5fcPUEYFZnEe9yYf4gtcRyV5Om8/D2hs+x5znl/w==
>
> ... etc.
>
> Not terribly useful for completion, I'm afraid :)
>
> I'm on Ubuntu Feisty.  Have other distros not switched to this SSH
> configuration?  I know Debian switched as of Etch to encrypted
> known_hosts, and I'd imagine others will catch up in due time, no?
>
My CentOS 4.3 and Fedora 6 systems have unencrypted known_hosts.  I
haven't looked at Fedora 7 yet.

# Steve



More information about the IPython-dev mailing list