ssh question

Wade Smart wadesmart at gmail.com
Tue Oct 4 14:07:32 UTC 2016


--
Registered Linux User: #480675
Registered Linux Machine: #408606
Linux since June 2005


On Tue, Oct 4, 2016 at 9:03 AM, R Kimber <richardkimber at btinternet.com> wrote:
> 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
> --

You have you use  ssh pi at xxx.xxx.xxx.xxx
I renamed mine and it didnt matter, still have to use that.

Wade




More information about the ubuntu-users mailing list