Outils du site

Lorsqu'on a un marteau pour seul outil, tous les problèmes finissent par ressembler à des clous. [Inconnu]

04-linux:30-ssh:12-config

Ceci est une ancienne révision du document !


SSH config

man ssh config

https://www.cyberciti.biz/faq/create-ssh-config-file-on-linux-unix/

Créer un fichier ~/.ssh/config pour définir ….

Le fichier config contient un ensemble règles définies par des paires clé-valeur :


<code>
# syntaxe 1
config1 value1 value2
# syntaxe 2 équivalente
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. If more than one pattern is provided, they should be separated by whitespace.
hostname Specifies the real host name to log into.

Exemple :

Host nas01
     HostName 192.168.1.100
     User root
     IdentityFile ~/.ssh/nas01.key
/etc/ssh/ssh_config : This files set the default configuration for all users of OpenSSH clients on that desktop/laptop and it must be readable by all users on the system.
Dernière modification : 2019/08/23 18:30