OSX

 

Note: Most of these instructions will work on Linux as well.


Keypair Authentication Setup

SSH regular use

Using ssh-agent and the keychain

To add your SSH key to ssh-agent when you log in, and store the passphrase in your keychain, you can make the following change to the SSH configuration on your laptop or remote machine.

Host ssh.cs.brown.edu
  AddKeysToAgent yes
  UseKeychain yes
  IdentityFile ~/.ssh/id_ed25519

FastX (for graphical sessions)

Optional (In Case You Dislike FastX) - X11 Forwarding with XQuartz

If you want to stick with regular ssh and still run programs with GUIs written according to the X display protocol, like gedit or Eclipse, you need an X server. With most Linux distributions, this should work out of the box, but for Macs, you'll need to download an extra bit of software.

Start by downloading the program XQuartz here.

Once the install wizard finishes, log out of your personal computer and log back in to finish the installation process. XQuartz will not work properly unless you do so.

You can now use the OSX Terminal (search for 'Terminal' using Mac's Spotlight Search function to find it) and use that to ssh to the department machines. To do so: