Editing /etc/ssh/ssh config

Jump to navigation Jump to search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

Latest revision Your text
Line 1: Line 1:
[[OpenSSH client]] configuration file.
+
{{Draft}}
 
 
Man page: https://man7.org/linux/man-pages/man5/ssh_config.5.html
 
  
 
* <code>[[~/.ssh/]]config</code>
 
* <code>[[~/.ssh/]]config</code>
 
* <code>/etc/ssh/ssh_config</code>
 
* <code>/etc/ssh/ssh_config</code>
  
== Examples ==
 
=== Basic example ===
 
Host your_machine_name
 
    Hostname IP_or_dns_name
 
    User [[Default usernames|USERNAME_TO_CONNECT]]
 
    [[IdentityFile]] ~/[[.ssh/id_ed25519]]      #Private key
 
 
=== 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
 
     Hostname (IP or hostname)
 
     Hostname (IP or hostname)
 
     Port 22
 
     Port 22
     User [[Default usernames|USERNAME_TO_CONNECT]]
+
     User USERNAME_TO_CONNECT
 
     [[IdentityFile]] ~/.ssh/id_ed25519
 
     [[IdentityFile]] ~/.ssh/id_ed25519
  
== [[Configure OpenSSH to reuse ssh connections]] ==
+
 
 
  [[ControlMaster]] auto
 
  [[ControlMaster]] auto
 
  [[ControlPath]] ~/.ssh/sockets/%r@%h-%p
 
  [[ControlPath]] ~/.ssh/sockets/%r@%h-%p
 
  [[ControlPersist]] 36000
 
  [[ControlPersist]] 36000
 
== [[OpenSSH Changelog]] ==
 
* 2016 [[OpenSSH 7.3]]  <code>include include.d/your_file</code>
 
  
  
 
To allow connection to some [[Cisco IOS]] devices:
 
To allow connection to some [[Cisco IOS]] devices:
*<code>[[KexAlgorithms]] +diffie-hellman-group14-sha1</code>
+
[[KexAlgorithms]] +diffie-hellman-group14-sha1
 
 
== Directives ==
 
* <code>[[HashKnownHosts]]</code>
 
* <code>[[StrictHostKeyChecking]]</code>
 
* <code>[[KexAlgorithms]]</code>
 
* <code>[[RemoteCommand]]</code>
 
* <code>[[ServerAliveInterval]]</code>
 
 
 
== Errors ==
 
* <code>[[bad configuration option:]]</code>
 
 
 
== Related terms ==
 
* [[Default usernames]]
 
* <code>[[.pg_service.conf]]</code>
 
* <code>[[viconfig]]</code>
 
* <code>[[aws ssm start-session]]</code>
 
* <code>[[IdentityAgent]]</code>
 
  
 
== See also ==
 
== See also ==
* {{ssh_config}}
+
* {{ssh}}
* {{ssh (openSSH)}}
 
 
* {{OpenSSH}}
 
* {{OpenSSH}}
  
  
 
[[Category:Security]]
 
[[Category:Security]]

Please note that all contributions to wikieduonline may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see Wikieduonline:Copyrights for details). Do not submit copyrighted work without permission!

Cancel Editing help (opens in new window)

Advertising: