Difference between revisions of "/etc/ssh/ssh config"

From wikieduonline
Jump to navigation Jump to search
Line 32: Line 32:
 
To allow connection to some [[Cisco IOS]] devices:
 
To allow connection to some [[Cisco IOS]] devices:
 
*<code>[[KexAlgorithms]] +diffie-hellman-group14-sha1</code>
 
*<code>[[KexAlgorithms]] +diffie-hellman-group14-sha1</code>
 +
 +
== Directives ==
 +
* <code>[[HashKnownHosts]]</code>
 +
* <code>[[StrictHostKeyChecking]]</code>
  
 
== Related terms ==
 
== Related terms ==
 
* [[Default usernames]]
 
* [[Default usernames]]
* <code>[[HashKnownHosts]]</code>
 
 
* <code>[[.pg_service.conf]]</code>
 
* <code>[[.pg_service.conf]]</code>
* <code>[[StrictHostKeyChecking]]</code>
 
  
 
== See also ==
 
== See also ==

Revision as of 17:57, 20 October 2021

OpenSSH client configuration file.

Man page: https://man7.org/linux/man-pages/man5/ssh_config.5.html

Basic example

Host your_machine_name
    Hostname IP_or_dns_name
    User USERNAME_TO_CONNECT
    IdentityFile ~/.ssh/id_ed25519

Complete example

Host machine_name_for_ssh_client
    ProxyJump YOUR_SERVER_TO_USE_AS_JUMPSERVER
    Hostname (IP or hostname)
    Port 22
    User USERNAME_TO_CONNECT
    IdentityFile ~/.ssh/id_ed25519

Configure OpenSSH to reuse ssh connections

ControlMaster auto
ControlPath ~/.ssh/sockets/%r@%h-%p
ControlPersist 36000


OpenSSH Changelog


To allow connection to some Cisco IOS devices:

Directives

Related terms

See also

Advertising: