Computing

How to Connect to a Linux Server via SSH (Aurora Example)


macOS

  1. Open a Terminal: Click on Spotlight (magnifying glass icon) at the top right of the screen, type “terminal,” and press Enter.
  2. Enter the command to connect to the server:
    • ssh <username>@aurora.nceas.ucsb.edu
      (Replace <username> with the username you use on Aurora)
    • If this is the first time connecting to the server, type yes to accept the server’s SSH key.
  3. Enter your password:

    Note: When you type your password, there is no visual feedback (such as •••••••••) to indicate that you are typing. This is a security feature.


Windows

  1. Download and install PuTTY: Download PuTTY here.
  2. Enter the server name: Use aurora.nceas.ucsb.edu. image
  3. Save the session for future use: Give it a name (e.g., “Aurora”) and click Save. image
  4. Connect: Click Open. If a security alert appears asking to accept the server’s key, click Yes. image
  5. Log in: Enter your username and password.

    Note: Like the Linux terminal, PuTTY will not show any characters while you type your password.

    Once successfully connected, you should see a window similar to the one below: image


Ubuntu Linux

  1. Open a Terminal: You can usually do this by pressing Ctrl+Alt+T.
  2. Enter the command to connect to the server: ssh <username>@aurora.nceas.ucsb.edu
  3. Accept the Key: If this is the first time connecting, type yes to accept the server’s SSH key.
  4. Enter your password:

    Note: There is no visual indication that you are typing your password.

Connecting with X11 Forwarding

X11 forwarding allows the use of GUI applications over the network. However, X11 can experience performance lag or lost sessions. For a more stable experience, we recommend using x2go instead.

Ubuntu Linux

Use the -Y flag when connecting: ssh -Y <username>@aurora.nceas.ucsb.edu

macOS

  1. Start your X11 application (e.g., XQuartz).
  2. An xterm window will open. From inside that window, connect to the server: ssh -Y <username>@aurora.nceas.ucsb.edu
  3. Launch your program (e.g., matlab).

External Links