Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I have machine at the office which is shut off I was hoping to turn it on from home using wake on lan. Reading about this, I have realized that I need the MAC address of the machine. Is there a way to find the MAC address of the machine from my ssh connection history?

I use an RSA key to connect to the machine.

share|improve this question
    
If you have access to the DHCP server, possible LDAP database, its nearest router or managed switch it may be possible to get the MAC with some detective skills. –  Alexios Jun 30 '12 at 10:07
3  
Even if you were able to find the MAC address, you wouldn't be able to do anything with it. The MAC address only has any use if you can send packets on the same Ethernet segment. –  Gilles Jun 30 '12 at 13:22
add comment

2 Answers

up vote 6 down vote accepted

No, ssh has nothing to do with MAC addresses. If you are using DHCP you can maybe look into the logs or configuration files to determine the mac address.

share|improve this answer
add comment

WOL has to be enabled to use it (normally a BIOS setting). If you know which port on a switch or router is connected to your target system you might find the MAC in the log-history of that network device.

share|improve this answer
    
Thanks. It was a long shot to begin with. The issue is that I have an Idea that I need the machine to test it on and I won't have access to it until Monday. I was hopping that the sysadmin has enables WOL on that machine. –  Yotam Jul 1 '12 at 11:49
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.