Can i obtain the --- MAC ADDRESS --- of a remote host??
Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
However I'd say you have a bad idea there. If the other side's NIC goes bad and the MAC is NIC specific (which it usually is but not always) then they'd no longer be able to communicate with you when they replaced the failed NIC wih a working one. Not only that its not likely to help you anyway as ssh relies mainly on the key - the IP is just a way to know where it goes or comes from - in fact if you leave out the IP/hostname in your authorized_hosts it will still work because it only cares about the key.
We need to know where this box is first. For most use, you need to be on the same lan segment.
If on same lan then ping ip address. OK if it fails usually.
Then run arp -a command.
Not sure ssh by mac would be anymore secure.
We have to configure some devices once in a while. I don't like to play with the book way so I just make a static arp entry for the device so that it is within my subnet. Then I can access it via the ip address that I created in static arp. Be sure to remove or know about that static entry. It can be a bugger to fix if forgotten.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.