ssh question
Mark Haney
mark.haney at vifprogram.com
Tue Oct 4 14:46:18 UTC 2016
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
Though, you should either setup DNS internally if you have a lot of hosts,
or edit /etc/hosts to let you resolve the name.
On Tue, Oct 4, 2016 at 10: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
> --
> 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
>
--
Mark Haney ::: Senior Systems Engineer
*VIF* *International Education*
P.O. Box 3566 ::: Chapel Hill, N.C. 27515 ::: USA
919-265-5006 office
Global learning for all.
www.viflearn.com
Find VIF on Facebook <http://facebook.com/VIFInternationalEducation> |
Twitter <https://twitter.com/vifglobaled> | LinkedIn
<http://www.linkedin.com/company/vif-international-education>
Recognized as a ‘Best for the World’
<http://bestfortheworld.bcorporation.net/> B Corp!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20161004/046e858e/attachment.html>
More information about the ubuntu-users
mailing list