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.

45 lines
1.1 KiB

  1. ### default for all ##
  2. Host *
  3. ForwardAgent no
  4. ForwardX11 no
  5. ForwardX11Trusted yes
  6. User nixcraft
  7. Port 22
  8. Protocol 2
  9. ServerAliveInterval 60
  10. ServerAliveCountMax 30
  11. ## override as per host ##
  12. Host server1
  13. HostName server1.cyberciti.biz
  14. User nixcraft
  15. Port 4242
  16. IdentityFile /nfs/shared/users/nixcraft/keys/server1/id_rsa
  17. ## Home nas server ##
  18. Host nas01
  19. HostName 192.168.1.100
  20. User root
  21. IdentityFile ~/.ssh/nas01.key
  22. ## Login AWS Cloud ##
  23. Host aws.apache
  24. HostName 1.2.3.4
  25. User wwwdata
  26. IdentityFile ~/.ssh/aws.apache.key
  27. ## Login to internal lan server at 192.168.0.251 via our public uk office ssh based gateway using ##
  28. ## $ ssh uk.gw.lan ##
  29. Host uk.gw.lan uk.lan
  30. HostName 192.168.0.251
  31. User nixcraft
  32. ProxyCommand ssh nixcraft@gateway.uk.cyberciti.biz nc %h %p 2> /dev/null
  33. ## Our Us Proxy Server ##
  34. ## Forward all local port 3128 traffic to port 3128 on the remote vps1.cyberciti.biz server ##
  35. ## $ ssh -f -N proxyus ##
  36. Host proxyus
  37. HostName vps1.cyberciti.biz
  38. User breakfree
  39. IdentityFile ~/.ssh/vps1.cyberciti.biz.key
  40. LocalForward 3128 127.0.0.1:3128