Open CD/DVD tray when connected via remote-desktop and no eject key?

I am connected to my headless (and keyboard less) Mac, which has a cd / dvd drive, via Remote Desktop.

If there is no disk in the drive, it doesn’t show up in Finder. How can I open the CD/DVD TRAY from a MacBook Pro without eject key?

When I connect a usb keyboard directly, I can eject via the eject key.


Solution 1:

You can do it from the Terminal by entering the following command:

drutil tray eject