SV: ssh question
Jan Johansson
j2 at mupp.net
Tue Oct 4 14:10:20 UTC 2016
You either need to set up a DNS server, or edit the hosts file of every client that want to reach the pi via name instead of IP.
Just like a phone book, a DNS server translates Names to IP-numbers.
________________________________
Från: ubuntu-users-bounces at lists.ubuntu.com <ubuntu-users-bounces at lists.ubuntu.com> för R Kimber <richardkimber at btinternet.com>
Skickat: den 4 oktober 2016 16:03:38
Till: Ubuntu
Ämne: ssh question
I have a raspberry pi that runs max2play. My router sees this device as
'max2play'. However if I try to ssh to it from my Ubuntu machine,
ssh root at max2play gives:
'Could not resolve hostname max2play: Name or service not known'
I can, of course connect using the IP address.
How do I configure ssh so that I can use the device's name? I tried
various suggestions.
ssh-keygen -R max2play, and ssh-keygen -R [IP]
seemed to work and update the known_hosts, but I still could not connect
(Name or service not known)
I tried
>ssh -o StrictHostKeyChecking=no root at max2play, but got
ssh: Could not resolve hostname max2play: Name or service not known
Is there a simple way of aliasing the IP address with the name?
- Richard
--
Richard Kimber
--
ubuntu-users mailing list
ubuntu-users at lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20161004/be08d6d1/attachment.html>
More information about the ubuntu-users
mailing list