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 | ||
| 04-linux:30-ssh:12-config [2019/08/23 18:24] – Roge | 04-linux:30-ssh:12-config [2019/08/23 18:41] (Version actuelle) – Roge | ||
|---|---|---|---|
| Ligne 1: | Ligne 1: | ||
| ====== SSH config ====== | ====== SSH config ====== | ||
| + | |||
| + | '' | ||
| https:// | https:// | ||
| Ligne 6: | Ligne 8: | ||
| Créer un fichier '' | Créer un fichier '' | ||
| - | Le fichier config contient un ensemble | + | Le fichier config contient un ensemble |
| <code bash> | <code bash> | ||
| Ligne 15: | Ligne 17: | ||
| config1=value1 value2 | config1=value1 value2 | ||
| </ | </ | ||
| + | |||
| + | Les clés les plus utilisées : | ||
| + | |||
| + | | clé | valeur | | ||
| + | |Host |Restricts the following declarations (up to the next Host or Match keyword) to be only for those hosts that match one of the patterns given after the keyword. | ||
| + | |HostName |Specifies the real host name to log into. | | ||
| + | |User |Specifies the user to log in as. This can be useful when a different user name is used on different machines. This saves the trouble of having to remember to give the user name on the command line. | | ||
| + | |IdentityFile |Specifies a file from which the user's DSA, ECDSA, Ed25519 or RSA authentication identity is read. The default is ~/ | ||
| + | |LocalForward |Specifies that a TCP port on the local machine be forwarded over the secure channel to the specified host and port from the remote machine. | | ||
| + | |||
| Exemple : | Exemple : | ||
| <code bash> | <code bash> | ||
| + | # Contexte ~/ | ||
| + | Host nas01 | ||
| + | | ||
| + | User root | ||
| + | | ||
| + | # Utilisation | ||
| + | ssh nas01 | ||
| + | # remplace ssh root@192.168.1.100 avec la clé nas01.key | ||
| + | </ | ||
| - | < | ||
| <note tip>/ | <note tip>/ | ||