O'Reilly logo

OS X El Capitan: The Missing Manual by David Pogue

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Remote Access with SSH

Are you a geek? Take this simple test at home: Do you get excited about OS X’s ability to permit SSH access?

If you answered “What’s SSH?” or “I’m already being quiet,” then the following discussion of Unix remote control may not interest you. To be sure, SSH is not a program with a graphic user interface (icons and menus). You operate it from within a program like Terminal by typing commands. (For details on Terminal, see the free downloadable appendix called “Terminal Crash Course” on this book’s “Missing CD” page at www.missingmanuals.com.)

If you’re willing to overlook that little peccadillo, though, SSH (Secure Shell) is an extremely powerful tool. It lets you connect to your Mac from anywhere—from across the network or across the Internet. And once you’re connected, you can take complete control of it, copying files, running commands, rearranging folders, or even shutting it down, all by remote control.

Getting In

Here’s how you go about using SSH:

  1. Set up your Mac by opening the Sharing panel of System Preferences and then turning on the Remote Login checkbox.

    You’ve just told the Mac it’s OK for you (or other people with accounts on your machine) to connect from the road. Quit System Preferences.

  2. Go away.

    You can move to another machine on the network or another computer on the Internet (if you’ve dealt with the port-forwarding issue described on Connecting from the Road). Once you’re online with that other machine, you can contact your home-base machine from ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required