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:externe [2018/05/28 14:50] – [Use SSH keys and/or SSH agent] cpetiten:documentation:tutorials:ssh:externe [2023/12/12 12:59] (Version actuelle) – supprimée ltaulell
Ligne 1: Ligne 1:
-====== Connection from outside of the ENS network ====== 
  
-<note important>**WARNING** : **Only** for your **fisrt connection** to the ''allo-psmn'' node (whether when connecting from the ENS network of from outside), [[en:documentation:tutorials:ssh:first_connection|follow these instructions]]</note> 
- 
-To connect with SSH from outside the ENS network, you must use one of the SSH servers of the institution: 
-  *''ssh.ens-lyon.fr'' if you have an informatic account at ENS de Lyon,  
-  * or the ''ssh.psmn.ens-lyon.fr'' server (see infographic): 
- 
-__Legend :__ 
-  * **black** : physical link 
-  * <wrap round notice>blue</wrap> :  standard SSH connection 
-  * <wrap round danger>red</wrap> : virtual SSH connection (hop) 
-  * <wrap round safety>green</wrap> : NFS links (/home) 
- 
-{{ :documentation:tutorials:infographie_sshexterne.jpeg?&direct |Connection from outside of the ENS network }} 
- 
-Use the following command: 
- 
-  * **WITH** your ENS de Lyon account, via ''ssh.ens-lyon.fr'' 
- 
-Your **SSH access to** ''ssh.ens-lyon.fr'' , **need to be ACTIVATED**, see [[http://www.ens-lyon.fr/PSI/aide/doku.php?id=ssh:accueil|the ENS documentation]]. 
- 
-<code bash>ssh -X -oProxyCommand="ssh yourlogin@ssh.ens-lyon.fr netcat -w1 allo-psmn %p" yourlogin@allo-psmn.psmn.ens-lyon.fr</code> 
- 
-Then, you must  give your password twice. 
- 
-<code bash> 
-yourlogin@ssh.ens-lyon.fr's password : 
- 
-yourlogin@allo-psmn's password : 
-</code> 
- 
-  * **WITHOUT** a ENS de Lyon account, via ''ssh.psmn.ens-lyon.fr'' 
- 
-<note warning>The ''ssh.psmn.ens-lyon.fr'' server is a minimalistic gateway **without access to your /home directory at PSMN**. You only have enough space to copy your SSH public key and some configuration files (ssh/config, alias, ...).</note> 
- 
-Two-steps connection: 
-<code bash> 
-ssh yourlogin@ssh.psmn.ens-lyon.fr 
-yourlogin@ssh.psmn.ens-lyon.fr's password : 
- 
-$ ssh yourlogin@allo-psmn.psmn.ens-lyon.fr 
-yourlogin@allo-psmn's password : 
-</code> 
- 
-One-step connection: 
- 
-<code bash>ssh -X -oProxyCommand="ssh yourlogin@ssh.psmn.ens-lyon.fr netcat -w1 allo-psmn %p" yourlogin@allo-psmn.psmn.ens-lyon.fr</code> 
- 
- 
-Then, you'll have to give your password twice: 
- 
-<code bash> 
-yourlogin@ssh.psmn's password : 
- 
-yourlogin@allo-psmn's password : 
-</code> 
- 
-and you are connected to ''allo-psmn'' : 
- 
-<code bash>yourlogin@allo-psmn%</code> 
- 
- 
-Once connected to ''allo-psmn'', you have access to your PSMN home-directory and to your files.  
- 
-<note warning>**warning**, ''allo-psmn'' is a **connection server**, it allows you to access and transfer your files **but that's it**</note> 
- 
-<note tip>To work oon PSMN cluster you have to connect from ''allo-psmn'', to [[documentation:clusters:services#serveurs_de_compilation|one of the front nodes]]  
-</note> 
- 
-To do so, use the following command: 
- 
-<code bash>ssh -X front_node_name</code> 
- 
-where front_node_name is the name of [[documentation:clusters:services#serveurs_de_compilation|one of the front nodes]]. 
- 
- 
-===== Use SSH keys and/or SSH agent ===== 
- 
-You can simplify your usage of SSH commands by using a set of keys, an SSH agent and a suitable configuration (see [[en:documentation:tutorials:ssh:accueil#use_ssh_key_and_ssh_agent|this documentation]]) and [[[[en:documentation:tutorials:ssh:clef_agent_ssh#linux_and_bsd_configuration_example|this example configuration file]]). 
- 
- 
- 
-If you have a set of SSH keys (personal, with passphrase), you can ** add ** your public key (id_?sa.pub) to the ''~/.ssh/authorized_keys'' file. 
- 
-  * for ''ssh.psmn.ens-lyon.fr'' (home local) 
- 
-<code bash> 
-scp ~/.ssh/id_rsa.pub yourlogin@ssh.psmn.ens-lyon.fr:~/.ssh/id_rsa.pub.perso 
- 
-ssh yourlogin@ssh.psmn.ens-lyon.fr 
- 
-cat .ssh/id_rsa.pub.perso >> .ssh/authorized_keys 
-</code> 
- 
-  * for ''allo-psmn'' (home PSMN) 
- 
-<code bash> 
-scp ~/.ssh/id_rsa.pub yourlogin@allo-psmn:~/.ssh/id_rsa.pub.perso 
- 
-ssh yourlogin@allo-psmn 
- 
-cat .ssh/id_rsa.pub.perso >> .ssh/authorized_keys 
-</code> 
- 
-==== Want more ? ==== 
- 
-  * http://sshmenu.sourceforge.net/articles/transparent-mulithop.html 
en/documentation/tutorials/ssh/externe.1527519034.txt.gz · Dernière modification : 2020/08/25 15:58 (modification externe)