/etc/ssh/ssh config

From wikieduonline
Jump to navigation Jump to search

Examples[edit]

Basic example[edit]

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

Complete example[edit]

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[edit]

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

OpenSSH Changelog[edit]


To allow connection to some Cisco IOS devices:

Directives[edit]

Errors[edit]

Related terms[edit]

See also[edit]

Advertising: