Advertisement
Searge

SSH Config

Nov 10th, 2024 (edited)
204
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # ======================================================================
  2. # Projects specific configs
  3. # It should be on top of this file
  4. # When you have a lot of hosts, it is the best practice
  5. # to store them separately
  6. # ======================================================================
  7. Include config.d/*
  8.  
  9. # ======================================================================
  10. # General configuration
  11. # Actually you can move this to ~/.ssh/config.d/all
  12. # ======================================================================
  13. Host *
  14.   KeepAlive yes
  15.   ForwardAgent yes
  16.   AddKeysToAgent yes
  17.   ControlMaster auto
  18.   ControlPersist 5m
  19.   ControlPath   /dev/shm/%r@%h%p
  20.   ServerAliveInterval 60
  21.   StrictHostKeyChecking no
  22.  
  23. # ======================================================================
  24. # Personal hosts
  25. # ======================================================================
  26. Host gitlab.com
  27.   IdentitiesOnly yes
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement