SSH: Difference between revisions

From Alliance Doc
Jump to navigation Jump to search
(Marked this version for translation)
m (small fixes.)
Line 2: Line 2:
<translate>
<translate>
<!--T:1-->
<!--T:1-->
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.  
Secure Shell (SSH) is a widely-used standard to connect to remote servers in a secure way.  The entire SSH connection is encrypted - especially the login credentials (username and password). SSH is the normal way Compute Canada users to connect in order to execute commands, submit jobs, follow the progress of these jobs and in some cases, transfer files.  


<!--T:2-->
<!--T:2-->
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 [http://www.chiark.greenend.org.uk/~sgtatham/putty/ PuTTY] and [http://mobaxterm.mobatek.net/download-home-edition.html 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.  
Various 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 is installed by default on these platforms. For Windows, individuals have to install an SSH client on their own: the two most common options are [http://www.chiark.greenend.org.uk/~sgtatham/putty/ PuTTY] and [http://mobaxterm.mobatek.net/download-home-edition.html 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.  


<!--T:5-->
<!--T:5-->
Line 11: Line 11:


<!--T:6-->
<!--T:6-->
Your <code>userid</code> is your Compute Canada '''default account''', typically something like <code>jsmith</code>, and the password is the same one you use to log in to the Compute Canada database, [https://ccdb.computecanada.ca/ ccdb.computecanada.ca]. The <code>userid</code> is '''not''' your CCI, like <code>abc-123</code>, nor a CCRI like <code>abc-123-01</code>.
Your <code>userid</code> is your Compute Canada '''default account''', typically something like <code>jsmith</code>, and the password is the same one you use to log in to the Compute Canada database, [https://ccdb.computecanada.ca/ ccdb.computecanada.ca]. The <code>userid</code> is '''not''' your CCI, like <code>abc-123</code>, nor a CCRI like <code>abc-123-01</code>, nor your email address.


<!--T:3-->
<!--T:3-->
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:
When using Linux or MacOS, you will need to open a terminal, for example /Applications/Utilities/Terminal.app for Apple hardware, and then use the command shown below:
{{Command|ssh -Y userid@machine_name}}
{{Command|ssh -Y userid@machine_name}}
    
    
The option <tt>-Y</tt> 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 [https://www.xquartz.org XQuartz]. Under windows, MobaXterm comes with an X11 server, while for PuTTY users, there is Xming (download  [http://downloads.sourceforge.net/project/xming/Xming/6.9.0.31/Xming-6-9-0-31-setup.exe installer] and [http://sourceforge.net/projects/xming/files/Xming-fonts/7.5.0.47/Xming-fonts-7-5-0-47-setup.exe/download 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 option <tt>-Y</tt> 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 will normally already be installed, but users of OS X will typically need to install an external package such as such [https://www.xquartz.org XQuartz]. Under windows, MobaXterm comes with an X11 server, while for PuTTY users, there is Xming (download  [http://downloads.sourceforge.net/project/xming/Xming/6.9.0.31/Xming-6-9-0-31-setup.exe installer] and [http://sourceforge.net/projects/xming/files/Xming-fonts/7.5.0.47/Xming-fonts-7-5-0-47-setup.exe/download 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.  


<!--T:4-->
<!--T:4-->

Revision as of 20:18, 27 July 2017

Other languages:

Secure Shell (SSH) is a widely-used standard to connect to remote servers in a secure way. The entire SSH connection is encrypted - especially the login credentials (username and password). SSH is the normal way Compute Canada users to connect in order to execute commands, submit jobs, follow the progress of these jobs and in some cases, transfer files.

Various 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 is 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, nor your email address.

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

Question.png
[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 will 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: