Re: [Dorset] Can I use hostnames with ssh without editing /etc/hosts

2013-08-20 Thread Victor Churchill
(Sorry, I am a bit behind the wave here... :) On 17 August 2013 22:09, Ralph Corderoy ra...@inputplus.co.uk wrote: OK, that means jd-Dimension-5000 could be turned into an IP address but no SSH daemon was listening on the default port of 22 so the machine clearly responded with a nothing's

Re: [Dorset] Can I use hostnames with ssh without editing /etc/hosts

2013-08-20 Thread Ralph Corderoy
Hi Victor, To find out what you could use strace to observe the connect(2) system call that's getting the error from the kernel. That will show the IP address that ssh has already worked out as it is passed to the kernel. If I want to know where my system thinks SomeHostName is then I

Re: [Dorset] Can I use hostnames with ssh without editing /etc/hosts

2013-08-18 Thread Keith Edmunds
On Sun, 18 Aug 2013 05:56:07 +0100, bob.dun...@xyzzy.org.uk said: A static IP address can be configured by the router using DHCP What Ralph said, correctly, was, Perhaps what John's friend was suggesting it to configure the DHCP server on the router to always give a particular IP address out to

Re: [Dorset] Can I use hostnames with ssh without editing /etc/hosts

2013-08-17 Thread JD
Message: 3 Date: Mon, 12 Aug 2013 14:32:39 +0100 From: Andrew zil...@ziltro.com To: dorset@mailman.lug.org.uk Subject: Re: [Dorset] Can I use hostnames with ssh without editing /etc/hosts Message-ID: 5208e3f7.1050...@ziltro.com Content-Type: text/plain; charset=UTF-8; format=flowed On 12/08

Re: [Dorset] Can I use hostnames with ssh without editing /etc/hosts

2013-08-17 Thread Peter Merchant
Tim, I want to use my Pi for many other projects, some on the 'bare metal' so I won't make it the DNS. I've also had a suggestion from a friend here in very rural Dorset. Configure my router to allocate static IP addresses. This seems to be possible with the Huawei but the GUI is

Re: [Dorset] Can I use hostnames with ssh without editing /etc/hosts

2013-08-17 Thread Ralph Corderoy
Hi Peter, I've also had a suggestion from a friend here in very rural Dorset. Configure my router to allocate static IP addresses. Whoa!!! You don't configure static IP addresses at the router. They are done on the individual hosts/devices. Perhaps what John's friend was suggesting it

Re: [Dorset] Can I use hostnames with ssh without editing /etc/hosts

2013-08-17 Thread Ralph Corderoy
Hi John, The router has the correct hostname for each computer but I get a refusal if I try, say, jd@jd-Dimension-5000, whereas jd@192.168.1.5 works. Ralph, the failure message was ssh: connect to host jd-Dimension-5000 port 22: Connection refused. OK, that means jd-Dimension-5000

Re: [Dorset] Can I use hostnames with ssh without editing /etc/hosts

2013-08-17 Thread Bob Dunlop
Hi, On Sat, Aug 17 at 08:44, Peter Merchant wrote: ... Whoa!!! You don't configure static IP addresses at the router. They are done on the individual hosts/devices. A static IP address can be configured by the router using DHCP in fact I find this a very useful feature of DHCP. All my

[Dorset] Can I use hostnames with ssh without editing /etc/hosts

2013-08-12 Thread JD
Thanks to several people who have given links for cross-compiling to a Pi, e.g. the toolchain and the Baking Pi tutorials. My problem is that I would like to use hostnames and not IP addresses when linking between 3 Linux computers that are just connected via my router. The router has the

Re: [Dorset] Can I use hostnames with ssh without editing /etc/hosts

2013-08-12 Thread Tim Allen
Hi John On 12/08/13 14:04, JD wrote: Thanks to several people who have given links for cross-compiling to a Pi, e.g. the toolchain and the Baking Pi tutorials. My problem is that I would like to use hostnames and not IP addresses when linking between 3 Linux computers that are just connected

Re: [Dorset] Can I use hostnames with ssh without editing /etc/hosts

2013-08-12 Thread Andrew
On 12/08/2013 14:04, JD wrote: My problem is that I would like to use hostnames and not IP addresses when linking between 3 Linux computers that are just connected via my router. The router has the correct hostname for each computer but I get a refusal if I try, say, jd@jd-Dimension-5000,

Re: [Dorset] Can I use hostnames with ssh without editing /etc/hosts

2013-08-12 Thread Ralph Corderoy
Hi John, The router has the correct hostname for each computer but I get a refusal if I try, say, jd@jd-Dimension-5000, whereas jd@192.168.1.5 works. By refusal do you mean connection refused? It would help us if you paste the shell line where you attempt it up to the next shell prompt.