[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#509028: openssh-client: ssh-keygen -l on known_hosts file does not display hostnames for lines with comments



Package: openssh-client
Version: 1:5.1p1-4
Severity: normal

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I am encountering a small bug when using ssh-keygen -l with
known_hosts files.  For lines that have comments, the hostname is not
diplayed in the ssh-keygen -l output:

servo:/tmp/cdtemp.mgJxDc 0$ cat known_hosts.nocomment 
example.server.net ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC0pZPJyb1TA+ykjXRO6VuieYxMNexgE1WEhvBHnOvPAI4u/N65BMp+QE9MO6m6gQdwcqy3d8jQM/FiJhuyk4RyBOCqyuPkQpHVsjQYn1qLbjhfgKnkqfW2ZtZOfyB9TuXt8maXTbHYELOYIQ06CcXyp4n6iZnhMtHC/+8zNgqOMOuSe2QuPMN9oDBZTdJhcWCfIPT9N4T0QlbZ3t2j75UhVd2qNhwDnb+LqWXbbToSd8c8npYgu7QKnazQY+I4IKv2cdfMhQfO/zTm0nlov471rScVf9hRiiWUypmOtH0yMiK7lPp7ppzuuDMlUOxSmMRxnd65rbXnEcEsceY5oXf9
servo:/tmp/cdtemp.mgJxDc 0$ ssh-keygen -l -f ./known_hosts.nocomment 
2048 fb:6e:85:5c:1d:04:ea:74:11:c9:0b:8f:14:26:e1:e0 example.server.net (RSA)
servo:/tmp/cdtemp.mgJxDc 0$ cat known_hosts.comment 
example.server.net ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC0pZPJyb1TA+ykjXRO6VuieYxMNexgE1WEhvBHnOvPAI4u/N65BMp+QE9MO6m6gQdwcqy3d8jQM/FiJhuyk4RyBOCqyuPkQpHVsjQYn1qLbjhfgKnkqfW2ZtZOfyB9TuXt8maXTbHYELOYIQ06CcXyp4n6iZnhMtHC/+8zNgqOMOuSe2QuPMN9oDBZTdJhcWCfIPT9N4T0QlbZ3t2j75UhVd2qNhwDnb+LqWXbbToSd8c8npYgu7QKnazQY+I4IKv2cdfMhQfO/zTm0nlov471rScVf9hRiiWUypmOtH0yMiK7lPp7ppzuuDMlUOxSmMRxnd65rbXnEcEsceY5oXf9 foo
servo:/tmp/cdtemp.mgJxDc 0$ ssh-keygen -l -f ./known_hosts.comment 
2048 fb:6e:85:5c:1d:04:ea:74:11:c9:0b:8f:14:26:e1:e0  foo (RSA)
servo:/tmp/cdtemp.mgJxDc 0$

As you can see in the last command, the hostname is not present in the
display, although the comment is.

The monkeysphere program uses the comment field in known_hosts files,
so this may present a problem for users of that program.

Thanks for the help.

jamie.


- -- System Information:
Debian Release: lenny/sid
  APT prefers testing
  APT policy: (500, 'testing'), (200, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.26-1-686 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages openssh-client depends on:
ii  adduser               3.110              add and remove users and groups
ii  debconf [debconf-2.0] 1.5.24             Debian configuration management sy
ii  dpkg                  1.14.23            Debian package management system
ii  libc6                 2.7-16             GNU C Library: Shared libraries
ii  libcomerr2            1.41.3-1           common error description library
ii  libedit2              2.11~20080614-1    BSD editline and history libraries
ii  libkrb53              1.6.dfsg.4~beta1-4 MIT Kerberos runtime libraries
ii  libncurses5           5.6+20080830-2     shared libraries for terminal hand
ii  libssl0.9.8           0.9.8g-14          SSL shared libraries
ii  passwd                1:4.1.1-6          change and administer password and
ii  zlib1g                1:1.2.3.3.dfsg-12  compression library - runtime

Versions of packages openssh-client recommends:
ii  openssh-blacklist             0.4.1      list of default blacklisted OpenSS
ii  openssh-blacklist-extra       0.4.1      list of non-default blacklisted Op
ii  xauth                         1:1.0.3-2  X authentication utility

Versions of packages openssh-client suggests:
ii  gtk-led-askpass [ssh-askpass 0.10-2      GTK+ password dialog suitable for 
pn  keychain                     <none>      (no description available)
pn  libpam-ssh                   <none>      (no description available)
ii  ssh-askpass                  1:1.2.4.1-7 under X, asks user for a passphras

- -- no debconf information

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iQIcBAEBAgAGBQJJSTWYAAoJEO00zqvie6q8DU0P/3yZFUSlAUtoZKAo5QVMqdsY
PZItjUtk4ZMTnCfSMu/EzrkZiTyXatFmNUfiXw+r/z2iVIyzc27obSVdb6w1B5qq
4auRZujuk2HkHNu+IU0Pon4CbBdPeJGIruNL2nsAOo0MJikcP9CPOzkCxkRMvY+O
Z9N9jvDWsbt9RgfeeE7Bl2nvjUgOO3M4UKj3B2h4n/twq57N1+qmvjYrJ+2Sn1Er
7xzwr6OjltG1bRjqenw48rvs+EL5cRI5eBLQSU5aedjz5KIm34s3nGa8+9SpjiJe
6QSlKUE7PZnBaoItBePnh7/ANuU12SBpMGikzP3aquHy6Qernrcr/Srtv10JOTDG
F56uSHzJhce/RvMCpCLGrP60qd1cOF99NDjQ6beN0GOVd6F/Ns1bDEPWoPzVBBcD
MYWoFr8/coeUG7f6Cy39duJGozDcI4LkyPQXViB7GmOgWhw6NF+jqDgnk2UrpLLo
j+RUvBwXMG4FBnf9rTyOWzthlz3PDafFi7LSa3Mte5osDzhu2Gdbv5Xr2ET/ThSk
CgWCUBmfJ7x/di1lBbUXOS2tu239uKNhe9pWY8GDZArxv44b4m9CgGXZFTaVcKMM
zfCTMmKLQwMyI6UbrJm/pnwi1MUYAEdhiee5MnQWYltme2VBrc00ykRYbx7OOjAu
tPIIzBSWvdPnXbU1VUC/
=C84l
-----END PGP SIGNATURE-----



Reply to: