linux:ssh:clientconfig

Diferències

Ací es mostren les diferències entre la revisió seleccionada i la versió actual de la pàgina.

Enllaç a la visualització de la comparació

Ambdós costats versió prèvia Revisió prèvia
linux:ssh:clientconfig [21/11/2023 23:23] – [fichero .ssh/config] matelinux:ssh:clientconfig [21/11/2023 23:48] (actual) mate
Línia 5: Línia 5:
 <code bash>alias ssh-local-dns='ssh -v -i /home/mate/.ssh/pi@raspberry pi@192.168.1.60'</code> <code bash>alias ssh-local-dns='ssh -v -i /home/mate/.ssh/pi@raspberry pi@192.168.1.60'</code>
 se puede optar por crear el fichero de configuración de conexión (''~/.ssh/config'') e invocarlo:<code bash>ssh nombre_host</code> se puede optar por crear el fichero de configuración de conexión (''~/.ssh/config'') e invocarlo:<code bash>ssh nombre_host</code>
 +
 +== nociones básicas
 +  * uso de ''Include <FILE>'' para fraccionar el fichero en otros
 +  * uso de ''Host *'' o ''Host *.dominio.com'' o ''Host 192.168.10.?'' para establecer opciones comunes a varios servidores.<code>Host *.co.uk
 +The following pattern would match any host in the 192.168.0.[0-9] network range:
 +Host 192.168.0.?
 +
 +A pattern-list is a comma-separated list of patterns.  Patterns within pattern-lists may be negated by preceding them with an exclamation mark (‘!’).  For example, to allow a key to be used from anywhere within an organisation except from the “dialup” pool, the following entry (in authorized_keys) could be used:
 +from="!*.dialup.example.com,*.example.com"</code>
 +  * opciones interesantes:
 +    * ''IdentitiesOnly=yes'' # only use the authentication identity files configured in the ssh_config files
 +    * ''PreferredAuthentications=publickey'' # Specifies the order in which the client should try protocol 2 authentication methods."gssapi-with-mic, hostbased, publickey, keyboard-interactive, password"
 +    * ''AddressFamily inet'' # any, inet (IPv4), inet6 (IPv6)
 +    * ''Protocol 2'' 
 +    * ''Compression yes''
 +    * ''ServerAliveInterval 60''
 +    * ''ServerAliveCountMax 20''
 +    * ''LogLevel INFO''
  
 == estructura ficheros == estructura ficheros
  • linux/ssh/clientconfig.1700637805.txt.gz
  • Darrera modificació: 21/11/2023 23:23
  • per mate