Note: Most of these instructions will work on Linux as well.
Connecting through SSH
Connecting from a remote computer:
- In a Terminal, run the command
ssh firstname.lastname@example.org(where username is your CS login).
- Enter the password you use to log in to your CS account.
- You will receive a prompt that asks if you you're sure you want to connect (yes/no). Type yes and hit enter.
- You are now connected to a CS department computer.
- If you want to connect to a specific computer, for examble cslab6a, change the command to
ssh -t email@example.com host=cslab6a
Using Keypair Authentication
- In a terminal, run the command
ssh-keygen -t rsa
- Accept the default location for the key files.
- Enter a strong passphrase for your key. You will be prompted for it twice. Do not make this passphrase the same as your Brown password.
- Copy your public key to your desktop with the command
cp .ssh/id_rsa.pub Desktop
- Upload your public key to your keys page. Wait a few minutes for the gateway to recognize your key.
- Follow the instructions above for connecting, but substitute
pk-ssh.cs.brown.eduin place of
FastX (for graphical sessions)
- To run programs with GUIs, like gedit, sublime, or Eclipse, the department recommends using FastX. The guide for FastX can be found here.
- If FastX is not working for whatever reason, please follow the instructions below to install XQuartz, which can be more robust.
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:
- In the Mac Terminal, run the command
ssh -Y firstname.lastname@example.org(where username is your CS login). For Linux, substitute -X instead of -Y.
- Enter your password.
- You are now connected to a CS department computer and can use graphical applications.