How To Use SSH on Mac OS X

2012-02-06 by . 4 comments

Post to Twitter

To start, open up Terminal. To open Terminal, click on the Spotlight icon and type in the word “Terminal”. Click on the result Terminal (or hit Enter). Once you have opened the Terminal, you’ll be ready to log in to your SSH account.

The SSH included with your Mac is a little different from the one which you would have installed on a Windows machine. On  a Windows computer, you can either enter your username into a GUI, or use commands in the Command Prompt (which is the Windows version of the Mac Terminal) to log in. On Mac, we don’t have that GUI, so we’re going to log in using a single command. This is actually a little quicker than using a GUI. Let’s get to it:

In the terminal, type:

ssh username@server.com

I’m using the username and the server that my professor at college assigned to me, so here’s what my login looks like:

Hit enter and you’ll be prompted for a password. The password is case-sensitive, naturally. Notice that the characters that you type don’t appear onscreen. SSH is more responsible about web security than I am. Once you have entered your password, hit enter again. If you’ve logged in successfully, you’ll see something like this:

Once again, notice the password isn’t shown at all. (In case you’re wondering, the blurred out bit has some info about your internet service provider which I’d rather not leave floating around the net, so that’s blurred out.) Assuming that everything went well, you should be all logged in and ready to go. Yay! Since we’re done for now, type “exit” to log off. I hope you enjoyed your first trip onto wherever you logged into!

This post was modified from a post originally published on Moshe Berman’s Blog on January 30, 2012. Moshe Berman is a student at Brooklyn College and an iPhone app Developer.

Filed under OS X Tutorial

4 Comments

Subscribe to comments with RSS.

  • cksum says:

    I think including easier examples (e.g., moshe@www.mywebsite.com or admin@192.168.1.8), a rundown on the commands “put” and “get” would really flesh this article out. Currently, it doesn’t do explain SSH, but rather just how to login in using the protocol. Once there, what’s a person to do? Better to call it (Logging in and out with SSH on OS X; note the “Mac” was dropped from the product name). Might also want to add that password character indicators are never present in cli (sudo, etc.).

  • stu says:

    Hard to understand how instructions can be so useless.

    • aj says:

      These instructions were perfect. Just what I needed and not any more than that. Perfect.

      Thank you.

  • Comments have been closed for this post