You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

64 lines
1.9 KiB

  1. #### Example SSH config file
  2. # Host = a list of domains, IPs and personalized aliases that use this config
  3. # entry. These alias names follow "Host" and are space delimited.
  4. # e.g. Host 192.168.1.1 example.com example1 myalias1
  5. # Hostname = the IP or real hostname
  6. # e.g. Hostname 192.168.1.1
  7. # User = the username
  8. # e.g. User jdoe
  9. # Port = if this is a non standard port, i.e. not 22
  10. # e.g. Port 2345
  11. # The above would allow you to use 'ssh exp1' or 'ssh myalias1' which are now
  12. # both equivalent commands for 'ssh jdoe@192.168.1.1 -p2345'
  13. #### Example entries
  14. # Example 1
  15. Host 192.168.1.1 example1
  16. Hostname 192.168.1.1
  17. # Non standard port
  18. Port 2222
  19. # Enable forwarding
  20. ForwardAgent yes
  21. # Proxy forwarding of the connection via 192.168.1.3
  22. ProxyCommand ssh jdoe@192.168.1.3 nc %h %p 2> /dev/null
  23. # Example 2
  24. Host 192.168.1.2 example2
  25. Hostname 192.168.1.2
  26. # Enable forwarding
  27. ForwardAgent yes
  28. ######################################
  29. # Defaults / catchall options. Add this block to the end of your config file to
  30. # enable these options for all unspecified connections.
  31. Host *
  32. # Default user
  33. User jdoe
  34. # Default identity, usually id_rsa which will be a sys default anyway.
  35. IdentityFile ~/.ssh/id_rsa
  36. # Enable compression.
  37. Compression yes
  38. # Hash known-host names for additional security.
  39. HashKnownHosts yes
  40. # Keep connection alive may benefit some connections.
  41. ServerAliveInterval 15
  42. ServerAliveCountMax 3
  43. # Allow local and proxy commands
  44. PermitLocalCommand yes
  45. # Forward agent for pushing your ssh-agent. You will need to add your ssh key
  46. # to the authorized_keys file on the remote system.
  47. # Normally not a great idea to make this a global always on option unless you
  48. # are sure the remote systems are secure.
  49. #ForwardAgent yes
  50. # Multiplexing shared connections to improve speed.
  51. #ControlPath ~/.ssh/master-%l-%r@%h:%p
  52. #ControlMaster auto