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:first_connection [2017/12/21 09:39] cpetiten:documentation:tutorials:ssh:first_connection [2023/12/12 12:59] (Version actuelle) – supprimée ltaulell
Ligne 1: Ligne 1:
-====== First SSH connection ====== 
  
- 
- 
-At your <wrap em>first attempt to connect to ''allo-psmn''</wrap> (either from the ENS network or from outside), \\ 
-you need to <wrap em>strictly follow these instructions </wrap> ! 
- 
- 
-The following message will appear at your first attempt to connect to ''allo-psmn'': 
- 
-<code> 
-The authenticity of host 'allo-psmn.ens-lyon.fr (140.77.144.90)' can't be established.  
-RSA key fingerprint is xx:lots:of:caracters:ascii:xx:xx. 
-</code> 
- 
- 
-• To the question:  
-<code bash>Are you sure you want to continue connecting (yes/no)?</code> 
- 
-Answer : <wrap caution> yes</wrap> 
-===== Generate SSH keys ===== 
- 
- 
-Si vous ne disposez pas déjà d'un jeu de clefs SSH sans mot de passe, vous allez le créer la première fois que vous vous connectez (pour simplifier le fonctionnement du système de calculs, vous devez disposer d'un jeu de clefs SSH sans mot de passe). Tapez les lignes de commande suivantes : 
- 
-<code bash>ssh-keygen -t dsa</code> 
- 
-• To the question: 
- 
-<code bash>Generating public/private dsa key pair. 
-Enter file in which to save the key (/home/votrelogin/.ssh/id_dsa) : 
-</code> 
- 
-<wrap hi>Hit ENTER</wrap> (default answer) 
- 
- 
- 
-• To the questions : 
- 
-<code bash> 
-Enter passphrase (empty for no passphrase) : 
-</code> 
- 
-and  
- 
-<code bash> 
-Enter same passphrase again : 
-</code> 
- 
-<wrap hi>Hit ENTER</wrap> (default answer) 
- 
-• Then type: 
- 
-<code bash> 
-ssh-keygen -t rsa 
-</code> 
- 
- 
-• To the question: 
-<code bash> 
-Generating public/private rsa key pair. 
-Enter file in which to save the key (/home/votrelogin/.ssh/id_rsa) : 
-</code> 
- 
-<wrap hi>Hit ENTER</wrap> (default answer) 
- 
-• to the questions: 
- 
-<code bash> 
-Enter passphrase (empty for no passphrase) : 
-</code> 
- 
-and  
- 
-<code bash> 
-Enter same passphrase again : 
-</code> 
- 
-<wrap hi>Hit ENTER</wrap> (default answer) 
- 
-===== Copie des clefs ===== 
- 
-Then, create the  ''~/.ssh/authorized_keys'' file by  typing: 
- 
-<code bash> 
-touch ~/.ssh/authorized_keys 
-</code> 
- 
-Next, 
-add your public SSH keys (''id_?sa.pub'') to the ''~/.ssh/authorized_keys'' file: 
- 
-<code bash> 
-cat .ssh/id*.pub >> ~/.ssh/authorized_keys 
-</code> 
- 
- 
-If you already have a pair of SSH authentication keys without password, copy the public key  (id_?sa.pub) in ''~/.ssh/authorized_keys''. 
- 
- 
-Besides, if you also have a personal pair of SSH authentication keys (with passphrase), you can add your personal SSH public key (id_?sa.pub) to the ''~/.ssh/authorized_keys'' file. 
- 
-===== Minimal configuration ===== 
- 
- 
-To automate as much as possible connections to machines and compute nodes, create the following configuration file (''~/.ssh/config'') : 
- 
-<code bash ~/.ssh/config> 
-Host * 
-  ServerAliveInterval 60 
-  ForwardX11Timeout 1d 
-  ForwardAgent yes 
-  ForwardX11 yes         # pour Linux 
-#  ForwardX11Trusted yes # pour MacOSX 
-  Compression yes 
-  StrictHostKeyChecking no 
-</code> 
- 
- 
-You can find ** a more complete file ** on the page [[documentation:tutorials:ssh:clef_agent_ssh&#exemple_de_configuration_pour_linux_et_bsd|Example of SSH configuration]]. 
- 
-Moreover, the list of front machine (connection servers) is available at [[documentation:clusters:services#serveurs_de_compilation|the following page]]. 
- 
- 
----- 
-Back to  [[documentation:tutorials:ssh:accueil|SSH connexion to front machines]] 
en/documentation/tutorials/ssh/first_connection.1513849155.txt.gz · Dernière modification : 2020/08/25 15:58 (modification externe)