Using SSH in Terminal.app (Mac OS X)


  • Applies to: Grid
    • Difficulty: Easy
    • Time Needed: 10
    • Tools Required: Mac OS X, Terminal, SSH
  • Applies to: DV
    • Difficulty: Easy
    • Time Needed: 10
    • Tools Required: Mac OS X, Terminal, SSH
  • Applies to: DV Developer
    • Difficulty: Easy
    • Time Needed: 10
    • Tools Required: Mac OS X, Terminal, SSH

Overview

The following article will teach you how to connect to your (mt) Media Temple service via SSH using the Terminal application in OS X.

Requirements

Before you start, you'll need:

Instructions

Connect to your service via SSH

Open your Terminal application. You will see a window with a $ symbol and a blinking cursor. This is your basic command prompt. From here, you may issue the command to establish the SSH connection to your server. The most basic usage of this is as follows. Be sure to replace 00000 with your site number.

ssh example.com@s00000.gridserver.com
ssh root@example.com
ssh root@xxx.xxx.xxx.xxx

Immediately after issuing this command, your computer will attempt to establish a connection to your server. If it is your first time connecting to that server, you will see a message asking you to confirm the identity of the machine:

The authenticity of host 'example.com (xxx.xxx.xxx.xxx)' can't be established.
RSA key fingerprint is f9:9b:06:11:75:d4:1f:d1:3c:51:0d:22:4a:13:ff:9f.
Are you sure you want to continue connecting (yes/no)  _

Make sure you entered the address properly, and type yes, followed by the return key, to proceed.

You will then be prompted to enter your password:

example.com@s00000.gridserver.com's password: _ 
root@example.com's password: _ 
root@xxx.xxx.xxx.xxx's password: _ 

Type or copy/paste your SSH user's password into Terminal. You will not see the cursor move while entering your password. This is normal. Once you are finished inputting your password, press return on your keyboard. At that point, you will be connected to your server remotely through SSH.

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
example.com@XX:~$  

Add Terminal to the dock (optional)

  1. Open your Macintosh HD and go to the Applications folder.
  2. Next, open the Utilities folder.
  3. Look for the application called Terminal.
  4. To add to your dock, you just simply drag it to an empty space in the Dock.

Now, any time you want to open a Terminal window, you can do so from the Dock.

Resources