Difference between revisions of "~/.ssh/config"

From wikieduonline
Jump to navigation Jump to search
 
(17 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 +
https://linux.die.net/man/5/ssh_config
  
 +
Host your_machine_name
 +
    Hostname IP_or_dns_name
 +
    User [[Default usernames|USERNAME_TO_CONNECT]]
 +
    [[IdentityFile]] ~/[[.ssh/id_ed25519]]
  
 +
Host *
 +
    User yourdefaultuser
 +
    [[StrictHostKeyChecking]] no
  
mkdir ~/.ssh/
 
touch ~/.ssh/config
 
  
 +
[[mkdir]] [[~/.ssh/]]
 +
[[touch]] [[~/.ssh/]]config
  
 +
[[ServerAliveInterval]]
 +
[[ClientAliveInterval]]
  
 
== Related ==
 
== Related ==
[[/etc/ssh/ssh_config]]
+
* <code>[[/etc/ssh/ssh_config]]</code>
 +
* <code>[[IdentityFile]]</code> pointing to [[private key]]
 +
* [[Terraform: AWS instance example with aws ami lookup and key name]]
 +
* <code>[[Bad owner or permissions on]]</code>
 +
* <code>[[chmod]]</code>
 +
* <code>[[SendEnv]]</code>
 +
 
 +
== See also ==
 +
* {{ssh_config}}
 +
* {{ssh}}
 +
 
 +
[[Category:ssh]]

Latest revision as of 11:10, 21 September 2023

Advertising: