ssh question

Karl Auer kauer at biplane.com.au
Tue Oct 4 14:58:03 UTC 2016


On Tue, 2016-10-04 at 10:46 -0400, Mark Haney wrote:
> You can always setup .ssh/config with the hostname you want to point
> to the IP address like this:
> 
> Host ngc
>    HostName 10.42.204.47
>    user root

This solution, like editing /etc/ssh/ssh_config, solves the problem
only for ssh. I don't know what the OP's Pi does, but if it has (say)
an ssh server and a web server on it, the OP might want to be able to
access both services via a name rather than an IP address.

Adding the name to /etc/hosts on a system makes the name usable with
all programs on that system. Adding the name to the DNS makes it usable
for any program with access to the DNS (broadly speaking - DNS servers
can impose limits).

Regards, K.

-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Karl Auer (kauer at biplane.com.au)
http://www.biplane.com.au/kauer
http://twitter.com/kauer389

GPG fingerprint: E00D 64ED 9C6A 8605 21E0 0ED0 EE64 2BEE CBCB C38B
Old fingerprint: 3C41 82BE A9E7 99A1 B931 5AE7 7638 0147 2C3C 2AC4







More information about the ubuntu-users mailing list