[ Date Index ] [ Thread Index ] [ <= Previous by date / thread ] [ Next by date / thread => ]
I have two desktop PCs, one called bridget running etch and the other called murgatroyd running Kubuntu. They are both attached to a router. Murgatroyd is being retired so I want to copy a lot of its files to bridget. In the Debian reference manual CH 10 (networking) it says that some software likes hostnames to be associated with IP addresses that can be resolved so I arranged for the router to assign a static address to both machines, 192.168.0.3 and 192.168.0.5, and I put these lines in /etc/hosts on both 192.168.0.3 bridget 192.168.0.5 murgatroyd Following the Debian Reference Manual Ch 9.5 I checked that /etc/ssh/sshd_config on murgatroyd had PubkeyAuthentication=yes. I then ran ssh-keygen on bridget and copied the file id_rsa.pub to ~user/.ssh/authorized_keys on murgatroyd, then in hope typed ssh user@murgatroyd This said that murgatroyd could not be authenticated and offered me a fingerprint which went into .ssh/known_hosts on bridget. I typed it again and got 'permission denied (pubkey,password)' So I tried ssh user@xxxxxxxxxxx and got straight through. So I can now do what I want but I'd like to understand the principles. Why does 192.168.0.5 work but 'murgatroyd' not? ie why is /etc/hosts not doing the job it is designed to do? Tony Sumner -- The Mailing List for the Devon & Cornwall LUG http://mailman.dclug.org.uk/listinfo/list FAQ: http://www.dcglug.org.uk/linux_adm/list-faq.html