Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

eddorey2k3

macrumors newbie
Original poster
I'm looking to run a shell, on my MBP that I can access remotely?

Anyone know if it can be done, or how?

Not exactly a lot of detail there, so if you need anything else, ask.
 
Enabling Remote Login ( Sys Pref -> Sharing -> Services ) will let you SSH into your MBP from an external source. I'm guessing that's what you're after?
 
Does one have to be on the local network to access the SSH-enabled machine or can it be done across the Internet? If one can access one's machine over the Internet, how is it done?
 
Does one have to be on the local network to access the SSH-enabled machine or can it be done across the Internet? If one can access one's machine over the Internet, how is it done?

Yes you have to have local access or port map thru the firewall for the computer you want to access.

If its a server then you should already have some access, make sure the OS X firewall knows you want to do this.

Is this computer on a router and some where on a network or is it just on a cable modem or DSL modem?
 
If you hardwire the computer to the Airport it will be even easier, You will need to set up a manual IP address and then open the ports on the airport for that address for SSH.

SSH is port 22

your settings on the computer would go something like this:

IP Address: 10.0.1.206 (has to be in the 200 range)
subnet: 255.255.255.0
Router: 10.0.1.1

On the Airport:

Public port: 22
IP address: 10.0.1.206
Private Port: 10.0.1.206

And that should do it.
 
You will need to set up a manual IP address

If you're the only one on your network you'll probably get the same IP address everytime you connect. So this is probably not necessary. Just make sure your internet router has portfowarding enabled for port 22 (=ssh) to your Macbook on your LAN.
 
On the same subnet you can use the Bonjour domain name instead of IPs. The Bonjour name is simply the name of the computer with .local appended to it e.g. AppleMac.local.

So to connect you open a Terminal and type: ssh username@applemac.local

where username is you OSX account name.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.