Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentesRévision précédente
Prochaine révision
Révision précédente
en:documentation:tutorials:ssh:multihop_ssh [2018/05/28 14:32] – [Multi-hop SSH] cpetiten:documentation:tutorials:ssh:multihop_ssh [2023/12/12 12:58] (Version actuelle) – supprimée ltaulell
Ligne 1: Ligne 1:
-====== Multi-hop SSH ====== 
- 
- 
-The servers (calculations, preview, data) are sometimes behind several firewalls or gateways (or multi-hop SSH , "rebonds" SSH in French). The SSH documentation explains how to pass a single gateway ('' ProxyCommand '' option). It is possible to cumulate this system of "bridge jump" several times. For example, we will detail multi-hop SSh for he network shown below. 
- 
-{{ :documentation:tutorials:infographie_sshmultihop.jpeg?&direct |Connection from "poste Chercheur" to front machine "vizu.psmn" via multihop SSH }} 
- 
-__Caption :__ 
-  * **black** : physical link 
-  * <wrap round notice>blue</wrap> :  standard ssh connection 
-red  * <wrap round safety>green</wrap> : NFs links (''/home'') 
- 
- 
- 
-The **Poste Chercheur**  (your computer!) tries to join the server **vizu.psmn** through 2 SSH gateways (red path). 
- 
-===== From au Mac/Linux/BSD machine ===== 
- 
-==== Manual multihop ==== 
- 
-We are going to manually accumulate connections (blue paths): 
- 
-<code> 
-user@postechercheur:~$ ssh ssh.ens-lyon.fr 
-</code> 
-<code> 
-user@ssh.ens-lyon.fr:~$ ssh allo-psmn 
-</code> 
-<code> 
-user@allo-psmn:~$ ssh vizu.psmn 
-</code> 
-<code> 
-user@vizu.psmn:~$ 
-</code> 
- 
-This manual operation can be automatize.  
- 
-==== Automated multihop ==== 
- 
-You need to add the gateways and target servers entries in the ''~ / .ssh / config'' file on the **''postechercheur''** . By adding up the different connections as you go. 
- 
- 
-  *  ''~/.ssh/config'' file on **''postechercheur''** 
-<file - ~/.ssh/config> 
-Host ssh-ens 
-  User user 
-  HostName ssh.ens-lyon.fr 
- 
-Host allo-psmn 
-  User user 
-  ProxyCommand ssh -qt ssh-ens tcpconnect allo-psmn.ens-lyon.fr %p 
- 
-Host vizu.psmn 
-  User user 
-  ProxyCommand ssh -qt allo-psmn netcat -w1 vizu.psmn.ens-lyon.fr %p 
-</file> 
- 
-(//A [[documentation:tutorials:ssh:clef_agent_ssh&#exemple_de_configuration_pour_linux_et_bsd|more compete]] configuration file is available on [[documentation:tutorials:ssh:clef_agent_ssh|this page]]//) 
- 
-That's it. You can now connect to  **''vizu.psmn''** from **''postechercheur''** in one command! 
-<code> 
-user@postechercheur:~$ ssh vizu.psmn 
- 
-user@vizu.psmn:~$ 
-</code> 
- 
- 
-It also works with the ''scp'' command. 
- 
- 
-The configuration and explanations on the automation of the login steps with an SSH-agent-ssh are explained 
-[[documentation:tutorials:ssh:clef_agent_ssh|here]]. 
- 
-===== From a  Windows machine ===== 
- 
-==== Multi-hop with PuTTY (Windows) ==== 
- 
-See the use of [[documentation:tutorials:ssh:putty#configurer_le_proxy_putty_plink|plink & PuTTY]] 
- 
- 
  
en/documentation/tutorials/ssh/multihop_ssh.1527517958.txt.gz · Dernière modification : 2020/08/25 15:58 (modification externe)