Outils du site

Dire qu'il existe des gens qui préfèrent François Mauriac à Pierre Dac. Comment se peut-ce ? Si je devais écrire une biographie un jour, j'écrirais celle de Pierre Dac. Je voudrais tant expliquer aux cons et aux jeunes l'importance de cet homme (Pierre Dac) dans la pensé moderne. Pierre Dac est à l'esprit d'aujourdhui, ce que Charles Trenet est à la chanson. Merci Pierre Dac de nous avoir enfoncé tant de portes ! [San-Antonio]

04-linux:30-ssh:12-config

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentesRévision précédente
Prochaine révision
Révision précédente
04-linux:30-ssh:12-config [2019/08/23 18:34] Roge04-linux:30-ssh:12-config [2019/08/23 18:41] (Version actuelle) Roge
Ligne 1: Ligne 1:
 ====== SSH config ====== ====== SSH config ======
  
-''man ssh config''+''man ssh config'' https://linux.die.net/man/5/ssh_config
  
 https://www.cyberciti.biz/faq/create-ssh-config-file-on-linux-unix/ https://www.cyberciti.biz/faq/create-ssh-config-file-on-linux-unix/
Ligne 23: Ligne 23:
 |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. | |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. | |HostName |Specifies the real host name to log into. |
-|User | |+|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 ~/.ssh/id_dsa, ~/.ssh/id_ecdsa, ~/.ssh/id_ed25519 and ~/.ssh/id_rsa. | |IdentityFile |Specifies a file from which the user's DSA, ECDSA, Ed25519 or RSA authentication identity is read.  The default is ~/.ssh/id_dsa, ~/.ssh/id_ecdsa, ~/.ssh/id_ed25519 and ~/.ssh/id_rsa. |
-|LocalForward | |+|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 ~/.ssh/config
 Host nas01 Host nas01
      HostName 192.168.1.100      HostName 192.168.1.100
      User root      User root
      IdentityFile ~/.ssh/nas01.key      IdentityFile ~/.ssh/nas01.key
 +# Utilisation
 +ssh nas01
 +# remplace ssh root@192.168.1.100 avec la clé nas01.key
 </code> </code>
  
Dernière modification : 2019/08/23 18:34