2

I have two MacBook Pros on my home network. I have followed the advice in the below question to be able to SSH into them:

How do you run a SSH server on Mac OS X?

However, how would I issue the command to SSH into them from:

  1. Within my home wireless network?
  2. From a work computer outside of my home network?

My home network is using a Linksys WRT54G router and both computers are connected wirelessly.

1 Answers1

4

For computers on your local network you use the private IP address e.g.

$ ssh 192.168.0.1

To connect from outside your network then you need the IP address of your router and you need to make sure that you have port 22 routed to the appropriate machine on your local network, and then you can just do:

$ ssh ww.xx.yy.zz

where ww.xx.yy.zz is your external (public) IP address.

Paul R
  • 5,708