SSH

From McGill University Physics Department Technical Services Wiki

Table of contents

Overview

SSH stands for Secure SHell. SSH allows a user to connect from a client computer to a remote SSH server and start a shell session on that computer. Secure Shell sessions are usually interactive, but there is also a file copying protocol based on SSH called SCP

Both Linux and MacOS will have SSH clients by default, for Windows PuTTY (http://www.chiark.greenend.org.uk/~sgtatham/putty/) is very popular, also WinSCP (http://winscp.net/) is a nice implementation of SCP.

Linux usage

One can use OpenSSH (usually included as a standard application) to connect to an SSH server. The command to access it would look something like the following:

$ ssh -l LOGIN_NAME DOMAIN.NAME.OF.SERVER.

If the client computer is running an X server, one can also add a -X to allow for X forwarding (to use graphical programs).

Copying files from client to host

One can also transfer files to and from the SSH server using scp. The usage of scp can vary (see man scp), but one of the most usable examples is:

$ scp FILE_1 FILE_2 YOU@SSH.SERVER:~

This command will copy FILE_1 FILE_2 ... to your SSH account home directory.

Windows usage

Windows users can use OpenSSH for windows (http://sshwindows.sourceforge.net/).