Difference between revisions of "~/.ssh/config"
Jump to navigation
Jump to search
| (15 intermediate revisions by 3 users not shown) | |||
| Line 1: | Line 1: | ||
| + | [https://linux.die.net/man/5/ssh_config man] | ||
Host your_machine_name | Host your_machine_name | ||
| Line 5: | Line 6: | ||
[[IdentityFile]] ~/[[.ssh/id_ed25519]] | [[IdentityFile]] ~/[[.ssh/id_ed25519]] | ||
| + | Host * | ||
| + | User yourdefaultuser | ||
| + | [[StrictHostKeyChecking]] no | ||
| Line 12: | Line 16: | ||
[[ServerAliveInterval]] | [[ServerAliveInterval]] | ||
[[ClientAliveInterval]] | [[ClientAliveInterval]] | ||
| + | |||
| + | [[RemoteCommand]] | ||
| + | [[RequestTTY]] | ||
| + | [[UseKeychain]] | ||
| + | [[ForwardAgent]] | ||
| + | [[ProxyJump]] | ||
| + | |||
| + | [[LocalForward]] | ||
| + | [[LocalCommand]] | ||
| + | |||
| + | [[SendEnv]] | ||
== Related == | == Related == | ||
* <code>[[/etc/ssh/ssh_config]]</code> | * <code>[[/etc/ssh/ssh_config]]</code> | ||
| − | |||
* [[Terraform: AWS instance example with aws ami lookup and key name]] | * [[Terraform: AWS instance example with aws ami lookup and key name]] | ||
| − | * [[Bad owner or permissions on]] | + | * <code>[[Bad owner or permissions on]]</code> |
| − | * [[chmod]] | + | * <code>[[chmod]]</code> |
| + | * [[sudo su -]] | ||
== See also == | == See also == | ||
| + | * {{ssh_config}} | ||
* {{ssh}} | * {{ssh}} | ||
[[Category:ssh]] | [[Category:ssh]] | ||
Latest revision as of 10:20, 24 July 2026
Host your_machine_name
Hostname IP_or_dns_name
User USERNAME_TO_CONNECT
IdentityFile ~/.ssh/id_ed25519
Host *
User yourdefaultuser
StrictHostKeyChecking no
mkdir ~/.ssh/ touch ~/.ssh/config
ServerAliveInterval ClientAliveInterval
RemoteCommand RequestTTY UseKeychain ForwardAgent ProxyJump
LocalForward LocalCommand
SendEnv
Related[edit]
/etc/ssh/ssh_config- Terraform: AWS instance example with aws ami lookup and key name
Bad owner or permissions onchmod- sudo su -
See also[edit]
/etc/ssh/ssh_config, ~/.ssh/config (man), RemoteCommand, RequestTTY, ServerAliveInterval, UseKeychain, ForwardAgent,ProxyJump, ControlMaster, ControlPath, ControlPersist- 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,ssh -o,~/.ssh/config
Advertising: