I am trying to connect from my server to my macbook thru ssh but I cannot find its hostname on the network. I enabled Remote Login in System Preferences > Sharing and my mac claims that:
Computers on your local network can access your computer at: macbook.local
Yet when I try to connect via
ssh [email protected] it tells me:
ssh: Could not resolve hostname macbook.local: Name or service not known
But I can ssh into it when I type in the given IP address (ie.
ssh [email protected]). The trouble is that this IP address changes and I want to add a remote git repository over ssh, so this won't do. What am I missing?