Connecting to a GSIT (Nexus) via SSH
This guide provides instructions for connecting to a remote server using SSH on both macOS and Windows.
macOS
Connecting to a remote server from macOS is straightforward using the built-in Terminal application.
Open the Terminal application: You can find the Terminal application in
Applications -> Utilities -> Terminal. A quicker way to open it is to use Spotlight Search by pressingCmd + Space, typingTerminal, and pressingEnter.Connect using SSH: Once the terminal is open, you can connect to the remote server using the
sshcommand, followed by your username and the server’s address.ssh your_username@nexus.gs.washington.eduFor example, if your username is
mriffle, you would use:ssh mriffle@nexus.gs.washington.eduThe first time you connect, you may see a message asking you to verify the authenticity of the host. Type
yesand pressEnterto continue. You will then be prompted to enter your password.
Windows
Connecting to a remote server from Windows has become much easier with modern versions of Windows, which include a built-in SSH client. For the best experience, we recommend using the Windows Terminal.
Installing Windows Terminal
Windows Terminal is a modern, powerful terminal application for users of command-line tools and shells like Command Prompt, PowerShell, and WSL. If you are on Windows 11, Windows Terminal is likely already installed.
Its main features include multiple tabs, panes, Unicode and UTF-8 character support, a GPU accelerated text rendering engine, and custom themes, styles, and configurations.
If it is not already installed, you can get it from the Microsoft Store:
Open the Microsoft Store on your Windows computer.
Search for “Windows Terminal”.
Click the “Get” or “Install” button to download and install it.
Alternatively, you can install it using the winget command-line tool:
winget install -e --id Microsoft.WindowsTerminal
Connecting with SSH
Once you have Windows Terminal installed, you can use it to connect to your remote server.
Open Windows Terminal. You can find it in your Start Menu. You can also right-click the Start button and select “Terminal”.
Connect using SSH: The command to connect is the same as on macOS and Linux. You will use the ssh command, followed by your username and the server’s address.
ssh your_username@nexus.gs.washington.eduFor example, if your username is mriffle, you would use:
ssh mriffle@nexus.gs.washington.eduThe first time you connect, you will be asked to confirm the authenticity of the host. Type yes and press Enter. You will then be prompted for your password.
Preventing SSH Timeouts
Note
This is an optional step. By default, your SSH connection may time out after a period of inactivity. If you find this happening frequently, you can configure your SSH client to send a “keepalive” signal to the server to keep the connection active.
macOS
On macOS, you can configure this in the ~/.ssh/config file.
Open a terminal and use a text editor to create or open the SSH config file. For example, using nano:
nano ~/.ssh/configAdd the following lines to the file:
Host * ServerAliveInterval 120This configuration applies to all hosts (
*) and sends a keepalive signal every 120 seconds.Save and exit the editor. For nano, press
Ctrl + X, thenYto confirm, andEnter.
Windows
The process is similar on Windows. The SSH config file is located at C:\Users\<Your-Username>\.ssh\config.
Open File Explorer and navigate to your user profile directory (e.g.,
C:\Users\mriffle).If you don’t see a
.sshfolder, you may need to show hidden files. In File Explorer, go to the View tab and check the Hidden items box.Open the
.sshfolder. If a file namedconfigdoes not exist, create it.Open the ``config`` file with a text editor like Notepad.
Add the following lines:
Host * ServerAliveInterval 120Save the file and close the editor. Your SSH connections will now use these settings.