When I access a linux machine with sshfs, I take the following steps.
- Get the ip address of the linux (the ip address is dynamically allocated to linux)
- Run sshfs id@ip_address:/HOME_DIRECTORY
Can I use a name, not ip address to access the linux machine?
To me, avahi seems to be the best solution as it enables Mac understands the name without any configuration. With ubuntu, I could install avahi as follows :
sudo apt-get install avahi-daemon