Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
en:documentation:tutorials:ssh:first_connection [2018/06/21 09:23] – [Copie des clefs] ltaulell | en:documentation:tutorials:ssh:first_connection [2023/12/12 12:59] (Version actuelle) – supprimée ltaulell | ||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
- | ====== First SSH connection ====== | ||
- | <WRAP center round important 82%> | ||
- | At your <wrap em>first attempt to connect to '' | ||
- | you need to <wrap em> | ||
- | </ | ||
- | |||
- | |||
- | |||
- | |||
- | |||
- | The following message will appear at your first attempt to connect to '' | ||
- | |||
- | < | ||
- | The authenticity of host ' | ||
- | RSA key fingerprint is xx: | ||
- | </ | ||
- | |||
- | |||
- | • To the question: | ||
- | <code bash>Are you sure you want to continue connecting (yes/ | ||
- | |||
- | Answer : <wrap caution> yes</ | ||
- | ===== 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 : | ||
- | |||
- | If you don't have already a SSH key pair **without** passphrase, you need to create it first time you connect (In order to simplify the computation system, you **must** have a SSH key pair **without** passphrase). Strictly follow these CLI instructions: | ||
- | |||
- | <code bash> | ||
- | ssh-keygen -t rsa | ||
- | </ | ||
- | |||
- | |||
- | • To the question: | ||
- | <code bash> | ||
- | Generating public/ | ||
- | Enter file in which to save the key (/ | ||
- | </ | ||
- | |||
- | <wrap hi>Hit ENTER</ | ||
- | |||
- | • to the questions: | ||
- | |||
- | <code bash> | ||
- | Enter passphrase (empty for no passphrase) : | ||
- | </ | ||
- | |||
- | and | ||
- | |||
- | <code bash> | ||
- | Enter same passphrase again : | ||
- | </ | ||
- | |||
- | <wrap hi>Hit ENTER</ | ||
- | |||
- | ===== Copie des clefs ===== | ||
- | |||
- | Then, create the '' | ||
- | |||
- | <code bash> | ||
- | touch ~/ | ||
- | </ | ||
- | |||
- | Next, add your public SSH key ('' | ||
- | |||
- | <code bash> | ||
- | cat .ssh/ | ||
- | </ | ||
- | |||
- | |||
- | If you already have a pair of SSH authentication keys without password, **copy** the public key (id_rsa.pub) in '' | ||
- | |||
- | |||
- | Besides, if you also have a personal pair of SSH authentication keys (with passphrase), | ||
- | |||
- | ===== Minimal configuration ===== | ||
- | |||
- | |||
- | To automate as much as possible connections to machines and compute nodes, create the following configuration file ('' | ||
- | |||
- | <code bash ~/ | ||
- | Host * | ||
- | ServerAliveInterval 60 | ||
- | ForwardX11Timeout 1d | ||
- | ForwardAgent yes | ||
- | ForwardX11 yes # pour Linux | ||
- | # ForwardX11Trusted yes # pour MacOSX | ||
- | Compression yes | ||
- | StrictHostKeyChecking no | ||
- | </ | ||
- | |||
- | |||
- | You can find ** a more complete file ** on the page [[documentation: | ||
- | |||
- | Moreover, the list of front machine (connection servers) is available at [[documentation: | ||
- | |||
- | |||
- | ---- | ||
- | Back to [[en: |