Difference between revisions of "/etc/ssh/ssh config"
Jump to navigation
Jump to search
Tags: Mobile web edit, Mobile edit |
|||
Line 2: | Line 2: | ||
* <code>/etc/ssh/ssh_config</code> | * <code>/etc/ssh/ssh_config</code> | ||
+ | Basic example: | ||
+ | Host your_machine_name | ||
+ | Hostname (IP or hostname) | ||
+ | User [[Default usernames|USERNAME_TO_CONNECT]] | ||
+ | [[IdentityFile]] ~/.ssh/id_ed25519 | ||
+ | |||
+ | Complete example: | ||
Host machine_name_for_ssh_client | Host machine_name_for_ssh_client | ||
[[ProxyJump]] YOUR_SERVER_TO_USE_AS_JUMPSERVER | [[ProxyJump]] YOUR_SERVER_TO_USE_AS_JUMPSERVER |
Revision as of 09:53, 16 September 2021
~/.ssh/config
/etc/ssh/ssh_config
Basic example:
Host your_machine_name Hostname (IP or hostname) 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
- 2016 OpenSSH 7.3
include include.d/your_file
To allow connection to some Cisco IOS devices:
KexAlgorithms +diffie-hellman-group14-sha1
Related terms
See also
- SSH:
ssh
, TLS,.ppk, .pem, .crt, .pub
, ED25519, Key exchange method (KEX), public key, private key,ssh -Q kex
,IAMUserSSHKeys
,known_hosts
, ssh tunnel, Dropbear - OpenSSH (changelog):
/etc/ssh/sshd_config
|/etc/ssh/ssh_config
|~/.ssh/
|openSSL | sshd logs
|sftp
|scp
|authorized_keys
|ssh-keygen
|ssh-keyscan
|ssh-add
|ssh-agent
|ssh
|Ssh -O stop
|ssh-copy-id
|CheckHostIP
|UseKeychain
, OpenSSF
Advertising: