Connecting and transferring files

De Wiki de Calcul Québec
Aller à : Navigation, rechercher
Cette page est une traduction de la page Se connecter et transférer des fichiers et la traduction est complétée à 100 % et à jour.

Autres langues :anglais 100% • ‎français 100%

Sommaire

Servers

You can connect to a server using the SSH secured shell protocol, SFTP or scp. To connect please use the following information :

  • Server : briaree.calculquebec.ca, colosse.calculquebec.ca, cottos.calculquebec.ca, guillimin.hpc.mcgill.ca, helios.calculquebec.ca, <groupe>-mp2.ccs.usherbrooke.ca, <groupe>-ms.ccs.usherbrooke.ca, psi.concordia.ca.
  • Port : 22

From Linux or Mac OS X

Under Linux or Mac OS X, you can connect or transfer files to a compute server using a console or a terminal. Under Mac OS X, you can use the software "Terminal", which is included with the system, or iTerm that you would have to install yourself. Under Linux, every distribution includes various terminal programs, one of which will be the default in the menu system.

Connection to a remote console

The following command shows how to connect to a server in Linux or Mac OS X. The port number does not need to be specified because it is SSH's default port number. The username is the one that was allocated when you requested your account. After that you should enter your password.


[localname@localserver $] ssh name@<server>.ca


If you have forgotten your password, you can reset it - resetting your password.

Transferring files

To transfer files to or from a server, you should use the SFTP file transfer protocol. There exist multiple free software programs that allow you to start those types of connections - Comparison of SFTP clients. There are also command line utilities, that is, scp and sftp. To this list, you may add some file managers such as Nautilus and Konqueror.

To copy a file from your machine running Linux/Mac OS to a Calcul Québec server, type:

[localname@localserver $] scp myfile name@server.ca:mydir/


and type the following for the other way around:

[localname@localserver $] scp name@server.ca:myfile .


Similarly, to copy a directory from your machine running Linux/Mac OS to a Calcul Québec server, type:

[localname@localserver $] scp -rp mydir name@server.ca:


and type the following for the other way around:

[localname@localserver $] scp -rp name@server.ca:mydir/ .


If you need to transfer large files, you will probably want to compress your files before transfering them. Please see the page Compressing and archiving.

From Windows

Connecting to a compute server through the SSH protocol is done in text mode, that is, you do not use a graphical interface but a console that is equivalent to a more powerful version of the console program "cmd.exe" in Windows. Moreover, Windows programs do not work on compute servers (unless an emulator is used). Specific tools that do not come with Windows are necessary to access a server.

Connecting to a remote console

PuTTY is an SSH client for Windows that can be used without installation.
To connect to a compute server, it is necessary to put the address of the server into the field "Host Name (or IP Address)" of Putty's welcome screen and to then click "Open".

Putty accueil.png

When you connect the first time Putty will ask you to accept the RSA host key, which you then do.

Putty authserv.png

You can then enter your username (login) and your password to proceed to the shell.

Note : with Putty, you can copy and paste by selecting the text you want and then clicking on the right mouse button.

Transferring files

WinSCP is a graphical SFTP client for Windows that allows you to copy files to and from a remote computer using drag and drop.
When you start it, you just need to enter the address of the server into the "Hostname" field of the "Session" tab and then to click "Connect".

Winscp accueil.png

When you connect the first time Putty will ask you to accept the RSA host key, which you then do.
You should then enter your username (login) and password.
A graphical window should open with on the left hand side your local file system and on the right hand side your user space on the compute server. You can do basic operations on the remote file system using the context menu (right-clicking the mouse) and copy files and folders dragging and dropping from the desired source to the desired destination.

Note : if you transfer text files that were edited under Windows, then they should be convered to UNIX format. In most cases WinSCP will do this automatically for you (using the "Auto" transfer mode) following the filename extension. If that is not the case, you should use the "dos2unix" utility on the compute server to achieve this operation :

[name@server $] dos2unix file_in_Windows_format


Graphical interface

If you would like to run a program featuring a graphical user interface from a Windows computer that is connected to one of our compute servers, you should install an X11 server. We suggest xming.

Other references

Connection using public and private keys

Compressing and archiving

High bandwidth transfers using BBCP

Server specific documentation

Briarée

[localname@localserver $] ssh name@briaree.calculquebec.ca

Colosse

[localname@localserver $] ssh name@colosse.calculquebec.ca

Cottos

[localname@localserver $] ssh name@cottos.calculquebec.ca

Guillimin

[localname@localserver $] ssh name@guillimin.hpc.mcgill.ca

Hadès

[localname@localserver $] ssh name@hades.calculquebec.ca

Helios

[localname@localserver $] ssh nom@helios.calculquebec.ca

Mammouth parallel II

Acces to Mp2's login nodes is possible via ssh using the researcher's group name: <group name>-mp2.ccs.usherbrooke.ca. All Mammoth users have received an email about all the connection details when their account was created. Example:

[localname@localserver $] ssh name@smith-mp2.ccs.usherbrooke.ca

Mammouth serial II

Access to Ms2's login nodes is possible via ssh using the researcher's group name: <group name>-ms.ccs.usherbrooke.ca. All Mammoth users have received an email about all the connection details when their account was created. Example:

[localname@localserver $] ssh name@smith-ms.ccs.usherbrooke.ca

Psi

[localname@localserver $] ssh name@psi.concordia.ca


Outils personnels
Espaces de noms

Variantes
Actions
Navigation
Ressources de Calcul Québec
Outils
Partager