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

SSH host key stored with IP, not host name



I have this weird problem:

Why is node01 being identified by its IP only, while
master.debian.org (as an example) is properly identified by name and
IP? node01 and node17 are absolutely identical (thanks to FAI) --
DNS works equally well on both.

  node17:~> rm -f .ssh/known_hosts .ssh/config

  node17:~> host node01
  node01.cluster.ailab.ch A 192.168.0.101

  node17:~> host 192.168.0.101
  Name: node01.cluster.ailab.ch
  Address: 192.168.0.101

  node17:~> ssh node01 true
  [...]
  Warning: Permanently added the RSA host key for IP address
  '192.168.0.101' to the list of known hosts.

  node17:~> cut -c-68 .ssh/known_hosts
  192.168.0.101 ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAIEA9L45vXWGN6rphwq8ER

  node17:~> ssh master.debian.org
  [...]
  Warning: Permanently added 'master.debian.org,146.82.138.7' (RSA) to
  the list of known hosts.

  node17:~> cut -c-68 .ssh/known_hosts
  192.168.0.101 ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAIEA9L45vXWGN6rphwq8ER
  master.debian.org,146.82.138.7 ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAIEAl

Thanks!

-- 
Please do not send copies of list mail to me; I read the list!
 
 .''`.     martin f. krafft <madduck@debian.org>
: :'  :    proud Debian developer, admin, user, and author
`. `'`
  `-  Debian - when you have better things to do than fixing a system
 
Invalid/expired PGP subkeys? Use subkeys.pgp.net as keyserver!

Attachment: signature.asc
Description: Digital signature


Reply to: