SSH on OS X?

Discussion in 'macOS' started by eddorey2k3, Feb 27, 2007.

  1. eddorey2k3 macrumors newbie

    Joined:
    Feb 27, 2007
    Location:
    England.
    #1
    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.
     
  2. jane doe macrumors 6502

    Joined:
    Feb 18, 2004
    #2
    SSH is built into Mac OS X you should be able to use it just fine for remote access.
     
  3. IscariotJ macrumors 6502a

    Joined:
    Jan 13, 2004
    Location:
    UK
    #3
    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?
     
  4. netdog macrumors 603

    netdog

    Joined:
    Feb 6, 2006
    Location:
    London
    #4
    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?
     
  5. jane doe macrumors 6502

    Joined:
    Feb 18, 2004
    #5
    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?
     
  6. netdog macrumors 603

    netdog

    Joined:
    Feb 6, 2006
    Location:
    London
    #6
    DSL Modem -> Apple Extreme N Router -> Airport connection to iMac

    WPA2 Enabled
     
  7. jane doe macrumors 6502

    Joined:
    Feb 18, 2004
    #7
    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.
     
  8. 4np macrumors 6502a

    4np

    Joined:
    Feb 23, 2005
    Location:
    The Netherlands
    #8
    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.
     
  9. Sayer macrumors 6502a

    Sayer

    Joined:
    Jan 4, 2002
    Location:
    Austin, TX
    #9
    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.
     
  10. macman2790 macrumors 6502a

    macman2790

    Joined:
    Sep 4, 2006
    Location:
    Texas

Share This Page