Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédenteDernière révisionLes deux révisions suivantes |
en:documentation:tutorials:ssh:putty [2020/06/10 15:24] – fleroux | en:documentation:tutorials:ssh:putty [2020/08/25 15:58] – modification externe 127.0.0.1 |
---|
Configuration documentation for PuTTY/KiTTY and WinSCP in the PSMN environment (Click on the following images if you want to view them in normal resolution). | Configuration documentation for PuTTY/KiTTY and WinSCP in the PSMN environment (Click on the following images if you want to view them in normal resolution). |
| |
<note warning>If you are using **Windows 10**, please refer to [[documentation:tutorials:ssh:windows10|this documentation]]</note> | <note warning>If you are using **Windows 10**, please refer to [[en:documentation:tutorials:ssh:windows10|this documentation]]</note> |
| |
===== References ===== | ===== References ===== |
| |
Don't worry, these adjustments only have to be made once. You will then be able to copy and rename the saved sessions. | Don't worry, these adjustments only have to be made once. You will then be able to copy and rename the saved sessions. |
==== 3.2 First connection & backup of .ssh/authorized_keys ==== | ==== 3.2 First connection ==== |
| |
| **And backup of .ssh/authorized_keys** |
| |
* **If necessary**, validate the addition of the Gateway HostKey to PuTTY's cache. | * **If necessary**, validate the addition of the Gateway HostKey to PuTTY's cache. |
* Enter your SNS, CBP or NCSP password when prompted. | * Enter your SNS, CBP or NCSP password when prompted. |
| |
* The NCMSP Gateway has very few tools at its disposal. Connect to an internal machine ([[documentation:clusters:services#serveurs_de_compilation|See the list of compilation servers]]. Accept the addition of the HostKey to the SSH cache), then edit the file ''~/.ssh/authorized_keys''. | * The PSMN Gateway has very few tools at its disposal. Connect to an internal machine: ([[documentation:clusters:services#serveurs_de_compilation|See the list of compilation servers]]. Accept the addition of the HostKey to the SSH cache), then edit the file ''~/.ssh/authorized_keys''. |
{{:documentation:tutorials:ssh_vim_authorized_keys.png?direct&300|}} | {{:documentation:tutorials:ssh_vim_authorized_keys.png?direct&300|}} |
| |
</note> | </note> |
| |
* Copiez la session de la passerelle (allo-psmn, Load, renommer en **ssh.ens** (ou **ssh.psmn**), save). Changez le ''Host Name'' pour celui de la passerelle de l'ENS de Lyon (''ssh.ens-lyon.fr'') ou du PSMN (''ssh.psmn.ens-lyon.fr''). Sauvegardez. | * Copy the gateway session (allo-psmn, Load, rename to **ssh.ens** (or **ssh.psmn**), save). Change the ''Host Name'' for that of the ENS de Lyon gateway (''ssh.ens-lyon.fr'') or of the PSMN (''ssh.psmn.ens-lyon.fr''). Save. |
| |
{{:documentation:tutorials:putty_conf_session_ext.png?direct&300|}} | {{:documentation:tutorials:putty_conf_session_ext.png?direct&300|}} |
| |
* Revenez dans la session de la passerelle (allo-psmn, Load) | * Return to the gateway session (allo-psmn, Load) |
| |
* Dans ''Connection->Proxy'', sélectionnez ''Local''. | * In ''Connection->Proxy'', select ''Local''. |
* Dans ''Connection->Proxy'', réglez ''Telnet command'' ainsi : <code>plink.exe -load ssh.ens -nc %host:%port</code> ou <code>plink.exe -load ssh.psmn -nc %host:%port</code> | * In ''Connection->Proxy'', set ''Telnet command'' as follows : <code>plink.exe -load ssh.ens -nc %host:%port</code> or <code>plink.exe -load ssh.psmn -nc %host:%port</code> |
| |
{{:documentation:tutorials:putty_conf_conn_proxy_ext.png?direct&300|}} | {{:documentation:tutorials:putty_conf_conn_proxy_ext.png?direct&300|}} |
| |
* Revenez dans ''Session'', sauvegardez. | * Go back to "Session", save. |
* Chargez la session de la passerelle de l'ENS de Lyon (ssh.ens, Load) | * Load the Lyon ENS gateway session (ssh.ens, Load) |
* Cliquez sur ''Open''. **Reproduisez les étapes du [[documentation:tutorials:ssh:putty&#premiere_connexion_sauvegarde_de_ssh_authorized_keys|paragraphe 3.2]]** directement sur la machine ''ssh.ens-lyon.fr''. | * Click on ''Open''. **Reproduce the steps of the [[en:documentation:tutorials:ssh:putty#first_connection|section 3.2]]** directly on the ''ssh.ens-lyon.fr'' machine. |
| |
* Revenez dans la session de la passerelle (allo-psmn, Load), puis cliquez sur ''Open''. Vous êtes, normalement, directement connecté sur allo-psmn. | * Return to the gateway session (allo-psmn, Load), then click ''Open''. You are normally directly connected to allo-psmn. |
| |
Il est possible de faire plus d'un rebond avec Putty en rappelant à chaque fois la session précédente avec la commande plink. Vous pouvez donc vous connecter sur une machine interne directement depuis l'extérieur. Pour cela, créez une troisième connexion en suivant les étapes du [[documentation:tutorials:ssh:putty&#cas_1vous_etes_a_l_interieur_du_reseau_de_l_ens|cas 1 ci-dessus]]. | It is possible to make more than one bounce with Putty by recalling the previous session each time with the plink command. So you can connect to an internal machine directly from the outside. To do this, create a third connection by following the steps of the [[en:documentation:tutorials:ssh:putty#configuring_the_putty_proxy_plink|Case 1 above]]. |
| |
| |
===== 4. WinSCP ===== | ===== 4. WinSCP ===== |
| |
Le logiciel WinSCP sert à la copie de fichiers, en utilisant le protocole SSH (et les sessions PuTTY). | The WinSCP software is used to copy files, using the SSH protocol (and PuTTY sessions prepared in previous paragraph). |
| |
<note important>**Cette documentation part du principe que votre poste client se trouve à l'intérieur du réseau de l'École**</note> | <note important>**This documentation assumes that your client workstation is within the School's network.**</note> |
| |
| |
==== 4.1 Configuration, Import & Connexion ==== | ==== 4.1 Configuration, Import & Connexion ==== |
| |
* Dans WinSCP, au premier lancement, cliquez sur ''Outils->Importer'' : | * In WinSCP, at the first launch, click on ''Tools->Import''. : |
{{:documentation:tutorials:winscp_sessions_import_a.png?direct&300|}} | {{:documentation:tutorials:winscp_sessions_import_a.png?direct&300|}} |
| |
* Selectionnez toutes vos sessions PuTTY, **y compris allo-psmn**, cochez la case "importer les clefs d'hotes...", Validez. | * Select all your PuTTY sessions, **including allo-psmn**, check the box "import host keys...", Validate. |
{{:documentation:tutorials:winscp_sessions_import_b.png?direct&300|}} | {{:documentation:tutorials:winscp_sessions_import_b.png?direct&300|}} |
| |
* Si vous avez oublié d'importer les HostKeys, vous aurez ce message : | * If you forgot to import HostKeys, you will get this message : |
{{:documentation:tutorials:winscp_hostkey.png?direct&300|}} | {{:documentation:tutorials:winscp_hostkey.png?direct&300|}} |
| |
* Selectionnez une des sessions, puis cliquez sur ''Connecter''. | * Select one of the sessions, then click on ''Connect''. |
| |
* Enfin, après connexion, vous obtiendrez ce panneau : | * Finally, after logging in, you will get this panel: |
{{:documentation:tutorials:winscp_panels.png?direct&300|}} | {{:documentation:tutorials:winscp_panels.png?direct&300|}} |
| |
Vous pouvez maintenant copier des fichiers vers ou depuis le PSMN. | You can now copy files to or from the PSMN. |
| |
===== 5. Export X, Xming ===== | ===== 5. Export X, Xming ===== |
| |
Si vous souhaitez afficher des applications graphiques depuis une machine du PSMN vers votre poste client sous Windows, il faut installer un ''serveur X'' : Le plus simple, fonctionnant trés bien avec PuTTY, est [[http://sourceforge.net/projects/xming/|Xming]] | If you want to display graphical applications from a PSMN machine to your Windows client, you have to install an "X server": The simplest, working very well with PuTTY, is to install an "X server". [[http://sourceforge.net/projects/xming/|Xming]] |
| |
Le PSMN dispose d'une machine dédiée à la visualisation graphique, voir [[documentation:tutorials:visualisation|cette documentation]] pour son usage. | The PSMN has a machine dedicated to graphic visualization, see [[documentation:tutorials:visualisation|this documentation]] for his use. |