<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Generator" content="Microsoft Exchange Server">
<!-- converted from text --><style><!-- .EmailQuote { margin-left: 1pt; padding-left: 4pt; border-left: #800000 2px solid; } --></style>
</head>
<body>
<meta content="text/html; charset=UTF-8">
<style type="text/css" style="">
<!--
p
        {margin-top:0;
        margin-bottom:0}
-->
</style>
<div dir="ltr">
<div id="x_divtagdefaultwrapper" style="font-size:12pt; color:#000000; font-family:Calibri,Arial,Helvetica,sans-serif">
<p>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.</p>
<p><br>
</p>
<p>Just like a phone book, a DNS server translates Names to IP-numbers.</p>
</div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="x_divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>Från:</b> ubuntu-users-bounces@lists.ubuntu.com <ubuntu-users-bounces@lists.ubuntu.com> för R Kimber <richardkimber@btinternet.com><br>
<b>Skickat:</b> den 4 oktober 2016 16:03:38<br>
<b>Till:</b> Ubuntu<br>
<b>Ämne:</b> ssh question</font>
<div> </div>
</div>
</div>
<font size="2"><span style="font-size:10pt;">
<div class="PlainText">I have a raspberry pi that runs max2play.  My router sees this device as<br>
'max2play'. However if I try to ssh to it from my Ubuntu machine,<br>
ssh root@max2play gives:<br>
'Could not resolve hostname max2play: Name or service not known'<br>
I can, of course connect using the IP address.<br>
<br>
How do I configure ssh so that I can use the device's name? I tried<br>
various suggestions.<br>
ssh-keygen -R max2play, and ssh-keygen -R [IP]<br>
seemed to work and update the known_hosts, but I still could not connect<br>
(Name or service not known)<br>
<br>
I tried<br>
>ssh -o StrictHostKeyChecking=no root@max2play, but got<br>
ssh: Could not resolve hostname max2play: Name or service not known<br>
<br>
Is there a simple way of aliasing the IP address with the name?<br>
<br>
- Richard<br>
-- <br>
Richard Kimber<br>
<br>
<br>
-- <br>
ubuntu-users mailing list<br>
ubuntu-users@lists.ubuntu.com<br>
Modify settings or unsubscribe at: <a href="https://lists.ubuntu.com/mailman/listinfo/ubuntu-users">
https://lists.ubuntu.com/mailman/listinfo/ubuntu-users</a><br>
</div>
</span></font>
</body>
</html>