Re: open ssh

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 10/5/19 3:56 AM, Samuel Sieb wrote:
On 10/4/19 6:35 AM, George N. White III wrote:
On Fri, 4 Oct 2019 at 06:41, Angelo Moreschini <mrangelo.fedora@xxxxxxxxx <mailto:mrangelo.fedora@xxxxxxxxx>> wrote:



    currently I perform operations between different computers in my
    local network using open SSH; however, when I do this, I always use
    the computer's IP number to reference the host. (ex: sudo ssh
    angelo_dev@10.0.0.15 <mailto:angelo_dev@10.0.0.15>)

    I'm wondering without yet finding an answer how to do the same thing
    using (instead of the IP address) the name of the computer ..
    Do I have to Installase BIND? And then what else is needed? ...


Have you tried Multicast DNS <https://en.wikipedia.org/wiki/Multicast_DNS>?    See mDNS on Fedora Linux <https://fedoramagazine.org/find-systems-easily-lan-mdns/>

This is what I was just going to suggest.  You need to set on each computer a unique hostname with "hostnamectl" and make sure that avahi is running.  On the computer you're connecting from, make sure you have "nss-mdns" installed (I don't know if it is by default).  Then you can use "<myhostname>.local" to connect.  If you don't set a hostname, I think the default is "linux", so you end up with linux.local, linux-2.local, etc.


One thing to be aware of, and not mentioned in the fedora magazine article is you happen to
have a network with some hosts using IPv6 only you need to change the nsswitch.conf
host line to mdns_minimal instead of mdns4_minimal.


--
If simple questions can be answered with a simple google query then why are there so many of them?
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux