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édenteDernière révisionLes deux révisions suivantes | ||
en:documentation:tutorials:ssh:first_connection [2017/12/21 10:27] – [Minimal configuration] cpetit | en:documentation:tutorials:ssh:first_connection [2020/08/25 15:58] – modification externe 127.0.0.1 | ||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
====== First SSH connection ====== | ====== First SSH connection ====== | ||
+ | |||
+ | ===== From ENS network ===== | ||
+ | |||
+ | |||
+ | * To connect to '' | ||
+ | |||
+ | <code bash > | ||
+ | ssh < | ||
+ | </ | ||
+ | |||
+ | ===== From outside of ENS network ===== | ||
+ | |||
+ | * To connect to '' | ||
+ | |||
+ | <code bash> | ||
+ | ssh < | ||
+ | # enter your PSMN password | ||
+ | # then | ||
+ | ssh < | ||
+ | # enter your PSMN password | ||
+ | </ | ||
+ | |||
+ | ===== First connection error message ===== | ||
<WRAP center round important 82%> | <WRAP center round important 82%> | ||
Ligne 5: | Ligne 28: | ||
you need to <wrap em> | you need to <wrap em> | ||
</ | </ | ||
- | |||
- | |||
Ligne 24: | Ligne 45: | ||
===== Generate SSH keys ===== | ===== Generate SSH keys ===== | ||
+ | <note important> | ||
- | 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 | + | If you don't have already a SSH key pair **without** passphrase, you need to create it first time you connect |
- | + | ||
- | <code bash> | + | |
- | + | ||
- | • To the question: | + | |
- | + | ||
- | <code bash> | + | |
- | 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</ | + | |
- | + | ||
- | • Then type: | + | |
<code bash> | <code bash> | ||
Ligne 82: | Ligne 76: | ||
<wrap hi>Hit ENTER</ | <wrap hi>Hit ENTER</ | ||
- | ===== Copie des clefs ===== | + | ===== Keys copy ===== |
Then, create the '' | Then, create the '' | ||
Ligne 90: | Ligne 84: | ||
</ | </ | ||
- | Next, | + | Next, add your public SSH key ('' |
- | add your public SSH keys ('' | + | |
<code bash> | <code bash> | ||
- | cat .ssh/id*.pub >> ~/ | + | cat .ssh/id_rsa.pub >> ~/ |
</ | </ | ||
- | If you already have a pair of SSH authentication keys without password, copy the public key (id_?sa.pub) in '' | + | If you already have a pair of SSH authentication keys without password, |
- | Besides, if you also have a personal pair of SSH authentication keys (with passphrase), | + | Besides, if you also have a personal pair of SSH authentication keys (with passphrase), |
===== Minimal configuration ===== | ===== Minimal configuration ===== | ||
Ligne 112: | Ligne 105: | ||
ServerAliveInterval 60 | ServerAliveInterval 60 | ||
ForwardX11Timeout 1d | ForwardX11Timeout 1d | ||
+ | TCPKeepAlive yes | ||
ForwardAgent yes | ForwardAgent yes | ||
- | ForwardX11 yes # | + | ForwardX11 yes # |
- | # ForwardX11Trusted yes # pour MacOSX | + | # ForwardX11Trusted yes # for MacOSX |
Compression yes | Compression yes | ||
StrictHostKeyChecking no | StrictHostKeyChecking no | ||
+ | HashKnownHosts no | ||
</ | </ | ||