/etc/ssh/ssh config

From wikieduonline
Revision as of 14:55, 24 March 2023 by Brave (talk | contribs) (→‎See also)
Jump to navigation Jump to search

OpenSSH client configuration file.

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

Examples

Basic example

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

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

Errors

Related terms

See also

Advertising: