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 09:08] – [Copie des clefs] 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 ====== | ||
- | <WRAP center round todo 60%> | + | ===== From ENS network ===== |
- | under construction | + | |
+ | |||
+ | * 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%> | ||
+ | At your <wrap em>first attempt to connect to '' | ||
+ | you need to <wrap em> | ||
</ | </ | ||
- | |||
- | At your <wrap em>first attempt to connect to '' | ||
Ligne 23: | 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 81: | Ligne 76: | ||
<wrap hi>Hit ENTER</ | <wrap hi>Hit ENTER</ | ||
- | ===== Copie des clefs ===== | + | ===== Keys copy ===== |
Then, create the '' | Then, create the '' | ||
Ligne 89: | Ligne 84: | ||
</ | </ | ||
- | Next, | + | Next, add your public SSH key ('' |
- | add your public SSH keys ('' | + | |
+ | <code bash> | ||
+ | cat .ssh/ | ||
+ | </ | ||
+ | |||
+ | |||
+ | If you already have a pair of SSH authentication keys without password, **copy** the public key (id_rsa.pub) in '' | ||
- | <code bash>cat .ssh/ | ||
- | Si vous disposez déjà d'un jeu de clef SSH sans mot de passe, copiez les clefs publiques | + | Besides, if you also have a personal pair of SSH authentication keys (with passphrase), you can **add** your personal SSH public key ('' |
- | Si vous disposez aussi d'un jeu de clefs SSH personnel (avec passphrase), | + | ===== Minimal configuration ===== |
- | ===== Configuration minimum ===== | ||
- | Pour automatiser le plus possible | + | To automate as much as possible |
- | <code bash config> | + | <code bash ~/.ssh/config> |
Host * | Host * | ||
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 | ||
</ | </ | ||
- | Vous trouverez **un fichier plus complet** sur la page [[documentation: | ||
+ | You can find ** a more complete file ** on the page [[documentation: | ||
- | ---- | + | Moreover, the list of front machine (connection servers) is available at [[documentation: |
- | Retour à [[documentation: | + | |
+ | ---- | ||
+ | Back to |