Advertisement
s243a

sshd_config (Android)

Jul 24th, 2018
271
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 3.60 KB | None | 0 0
  1. PrintMotd no
  2. PasswordAuthentication no
  3. PubkeyAcceptedKeyTypes +ssh-dss
  4. Subsystem sftp /data/data/com.termux/files/usr/libexec/sftp$
  5.  
  6. AllowUsers root #added by s243a http://murga-linux.com/pupp$
  7. Port 8022  #Uncommented by s243a
  8. AddressFamily inet #Uncommented by s243a (Maybe change to A$
  9. ListenAddress 0.0.0.0 #Uncommented by s243a 192.168.1.8 #
  10.  
  11. Protocol 2,1
  12.  
  13. # HostKey for protocol version 1
  14. #HostKey /etc/ssh/ssh_host_key
  15. # HostKeys for protocol version 2
  16. HostKey /etc/ssh/ssh_rsa_key
  17. HostKey /etc/ssh/ssh_dsa_key
  18. HostKey /etc/ssh/ssh_ecdsa_key
  19. #HostKey /etc/ssh/ssh_ed25519_key
  20.  
  21. # Ciphers and keying
  22. #RekeyLimit default none
  23. #Ciphers blowfish-cbc
  24.  
  25. # Logging
  26. # obsoletes QuietMode and FascistLogging
  27. SyslogFacility AUTHPRIV
  28. #LogLevel INFO
  29. LogLevel VERBOSE #INFO
  30.  
  31. # Authentication:
  32.  
  33. LoginGraceTime 2m
  34. # See /usr/share/doc/openssh-server/README.Debian.gz.
  35. PermitRootLogin yes #Uncommented by s243a http://murga-linu$
  36. StrictModes no #s243a maybe change this back to yes
  37. #MaxAuthTries 6
  38. #MaxSessions 10
  39.  
  40. RSAAuthentication yes #s243a deprecated
  41. PubkeyAuthentication yes
  42.  
  43. # The default is to check both .ssh/authorized_keys and .ss$
  44. # but this is overridden so installations will only check .$
  45. AuthorizedKeysFile      .ssh/all_authorized_keys
  46.  
  47. #AuthorizedPrincipalsFile none
  48.  
  49. #AuthorizedKeysCommand none
  50. #AuthorizedKeysCommandUser nobody
  51.  
  52. # For this to work you will also need host keys in /etc/ssh$
  53. #RhostsRSAAuthentication no
  54. # similar for protocol version 2
  55. #HostbasedAuthentication no
  56. # Change to yes if you don't trust ~/.ssh/known_hosts for
  57. # RhostsRSAAuthentication and HostbasedAuthentication
  58. #IgnoreUserKnownHosts no
  59. # Don't read the user's ~/.rhosts and ~/.shosts files
  60. #IgnoreRhosts yes
  61.  
  62. # To disable tunneled clear text passwords, change to no he$
  63. PasswordAuthentication no
  64. #PermitEmptyPasswords no
  65.  
  66. # Change to no to disable s/key passwords
  67. #ChallengeResponseAuthentication yes
  68.  
  69. # Kerberos options
  70. #KerberosAuthentication no
  71. #KerberosOrLocalPasswd yes
  72. #KerberosTicketCleanup yes
  73. #KerberosGetAFSToken no
  74.  
  75. # Set this to 'yes' to enable PAM authentication, account p$
  76. # and session processing. If this is enabled, PAM authentic$
  77. # be allowed through the ChallengeResponseAuthentication and
  78. # PasswordAuthentication.  Depending on your PAM configurat$
  79. # PAM authentication via ChallengeResponseAuthentication ma$
  80. # the setting of "PermitRootLogin without-password".
  81. # If you just want the PAM account and session checks to ru$
  82. # PAM authentication, then enable this but set PasswordAuth$
  83. # and ChallengeResponseAuthentication to 'no'.
  84. #UsePAM no
  85.  
  86. AllowAgentForwarding yes
  87. AllowTcpForwarding yes #Uncommented by s243a http://murga-l$
  88. GatewayPorts yes
  89. #X11Forwarding yes
  90. #X11DisplayOffset 10
  91. #X11UseLocalhost no
  92. #XAuthLocation /usr/bin/xauth  #/usr/bin/X11/xauth  /root/.$
  93. PermitTTY yes
  94. PrintMotd yes
  95. PrintLastLog yes
  96. TCPKeepAlive yes #uncommented by s243a http://murga-linux.c$
  97. #UseLogin yes #s243a deprecated
  98.  
  99. UsePrivilegeSeparation no #sandbox              # Default f$
  100. PermitUserEnvironment yes
  101. Compression delayed
  102. #ClientAliveInterval 0
  103. #ClientAliveCountMax 3
  104. #UseDNS yes
  105. PidFile /var/run/sshd.pid
  106. #MaxStartups 10:30:100
  107. PermitTunnel yes
  108. #ChrootDirectory none
  109. #VersionAddendum none
  110.  
  111. # no default banner path
  112. #Banner none
  113.  
  114.  
  115. # override default of no subsystems
  116. #Subsystem      sftp    /usr/libexec/sftp-server
  117.  
  118. # Example of overriding settings on a per-user basis
  119. #Match User anoncvs
  120. #       X11Forwarding yes
  121. #       AllowTcpForwarding yes
  122. #       PermitTTY no
  123. #       ForceCommand cvs server
  124.  
  125.  #added by s243a http://murga-linux.com/puppy/viewtopic.php$
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement