SSH

From CC Doc
Jump to: navigation, search
Other languages:
English • ‎français

Secure Shell (SSH) is a standard that allows individuals to connect to remote servers such that their login credentials are encrypted. It is the normal way Compute Canada users connect to our servers to execute commands, submit jobs, and follow the progress of these jobs.

Various software implementations of the SSH standard exist for most major operating systems. On OS X (Apple) and Linux the most widely used client is OpenSSH, a command line application which normally comes installed by default on these platforms. For Windows, individuals have to install an SSH client on their own: the two most common options are PuTTY and MobaXTerm. To use any of these implementations of SSH successfully, you need to know (1) the name of the machine to which you want to connect, (2) your userid and (3) your password.

The machine name will be something like cedar.computecanada.ca or niagara.computecanada.ca.

Your userid is your Compute Canada default account, typically something like jsmith, and the password is the same one you use to log in to the Compute Canada database, ccdb.computecanada.ca. The userid is not your CCI, like abc-123, nor a CCRI like abc-123-01.

When using Linux or Apple, you will need to open a terminal, for example /Applications/Utilities/Terminal.app for Apple hardware, and then use the command shown below:

[name@server $] ssh -Y userid@machine_name

The option -Y forwards X11 traffic which allows you to use graphical applications on the remote server such as certain text editors. Note that to use graphical applications you also need to have an X11 server installed on your workstation. Under Linux an X11 server should normally already be installed but users of OS X will typically need to install an external package such as such XQuartz. Under windows, MobaXterm comes with an X11 server, while for PuTTY users, there is Xming (download installer and extra fonts). The first time that you connect to a remote server you'll be asked to store a copy locally of its "host key", a unique identifier that allows the ssh client to verify, when connecting next time, that this is the same server.

The use of Windows-based SSH clients and the more advanced topic of key pair generation are discussed in the pages below: