Advertisement
Guest User

ssh

a guest
Oct 21st, 2016
825
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.89 KB | None | 0 0
  1. Config in .ssh
  2. Host 10.0.12.28
  3. User root
  4. IdentityFile ~/.ssh/id_rsa
  5. PasswordAuthentication no
  6.  
  7. ssh_config in /etc/ssh/
  8.  
  9. # This is the ssh client system-wide configuration file. See
  10. # ssh_config(5) for more information. This file provides defaults for
  11. # users, and the values can be changed in per-user configuration files
  12. # or on the command line.
  13.  
  14. # Configuration data is parsed as follows:
  15. # 1. command line options
  16. # 2. user-specific file
  17. # 3. system-wide file
  18. # Any configuration value is only changed the first time it is set.
  19. # Thus, host-specific definitions should be at the beginning of the
  20. # configuration file, and defaults at the end.
  21.  
  22. # Site-wide defaults for some commonly used options. For a comprehensive
  23. # list of available options, their meanings and defaults, please see the
  24. # ssh_config(5) man page.
  25.  
  26. Host *
  27. # ForwardAgent no
  28. # ForwardX11 no
  29. # ForwardX11Trusted yes
  30. # RhostsRSAAuthentication no
  31. # RSAAuthentication yes
  32. # PasswordAuthentication yes
  33. # HostbasedAuthentication no
  34. # GSSAPIAuthentication no
  35. # GSSAPIDelegateCredentials no
  36. # GSSAPIKeyExchange no
  37. # GSSAPITrustDNS no
  38. # BatchMode no
  39. # CheckHostIP yes
  40. # AddressFamily any
  41. # ConnectTimeout 0
  42. # StrictHostKeyChecking ask
  43. # IdentityFile ~/.ssh/identity
  44. # IdentityFile ~/.ssh/id_rsa
  45. # IdentityFile ~/.ssh/id_dsa
  46. # IdentityFile ~/.ssh/id_ecdsa
  47. # IdentityFile ~/.ssh/id_ed25519
  48. # Port 22
  49. # Protocol 2
  50. # Cipher 3des
  51. # Ciphers aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-cbc,3des-cbc
  52. # MACs hmac-md5,hmac-sha1,umac-64@openssh.com,hmac-ripemd160
  53. # EscapeChar ~
  54. # Tunnel no
  55. # TunnelDevice any:any
  56. # PermitLocalCommand no
  57. # VisualHostKey no
  58. # ProxyCommand ssh -q -W %h:%p gateway.example.com
  59. # RekeyLimit 1G 1h
  60. SendEnv LANG LC_*
  61. HashKnownHosts yes
  62. GSSAPIAuthentication yes
  63. GSSAPIDelegateCredentials no
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement