From time to time I end-up having to connect to a machine that was not configured to use DHCP.

Assuming that I know the static IP address of that machine and that this machine is already physically connected on my network, how do I add a custom route on MacOS in order to be able to ssh to that machine and reconfigure it?

I assume it is something like sudo route add ...

  • 1
    Is the static IP Address that's assigned to the machine in the same subnet as your network? Dec 19, 2016 at 1:10

2 Answers 2


I do this all the time. There are 2 options:-

ssh user@<IP> for a known IP address

or if the machine has a hostname, the Mac should be able to discover it with
ssh user@hostname.local

Similar settings can be used from most GUI ssh clients.


If the machine is in your network and you know it's IP address, you should be able to connect to it.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .