# This is the sshd server system-wide configuration file.  See
# sshd_config(5) for more information.

Port 22
Protocol 2
#AddressFamily any
#ListenAddress 0.0.0.0
#ListenAddress ::

# HostKey for protocol version 1
#HostKey /home/targets/ssh/settings/ssh_host_key
# HostKeys for protocol version 2
HostKey /home/targets/ssh/settings/ssh_host_ecdsa_key
HostKey /home/targets/ssh/settings/ssh_host_dsa_key
#HostKey /home/targets/ssh/settings/ssh_host_rsa_key

# Lifetime and size of ephemeral version 1 server key
KeyRegenerationInterval 1h
ServerKeyBits 1024

# Logging
# obsoletes QuietMode and FascistLogging
#SyslogFacility AUTH
#LogLevel INFO

# Authentication:
LoginGraceTime 1m
#PermitRootLogin yes
MaxAuthTries 3
#MaxSessions 10
UsePrivilegeSeparation yes
#RSAAuthentication yes
PubkeyAuthentication yes
AuthorizedKeysFile	.ssh/authorized_keys

# Strict Modes is dangerous and should not be used under Turtle Kevux (This is specific to Turtle Kevux, due to it's stronger system permissions)
StrictModes no

# For this to work you will also need host keys in /home/targets/ssh/settings/ssh_known_hosts
RhostsRSAAuthentication no
# similar for protocol version 2
HostbasedAuthentication no
# Change to yes if you don't trust ~/.ssh/known_hosts for
# RhostsRSAAuthentication and HostbasedAuthentication
#IgnoreUserKnownHosts no
# Don't read the user's ~/.rhosts and ~/.shosts files
IgnoreRhosts yes

# Set this to 'yes' to enable PAM authentication, account processing, 
# and session processing. If this is enabled, PAM authentication will 
# be allowed through the ChallengeResponseAuthentication and
# PasswordAuthentication.  Depending on your PAM configuration,
# PAM authentication via ChallengeResponseAuthentication may bypass
# the setting of "PermitRootLogin without-password".
# If you just want the PAM account and session checks to run without
# PAM authentication, then enable this but set PasswordAuthentication
# and ChallengeResponseAuthentication to 'no'.
#UsePAM no

# To disable tunneled clear text passwords, change to no here!
#PasswordAuthentication yes
#PermitEmptyPasswords no

# Change to no to disable s/key passwords
#ChallengeResponseAuthentication yes

# Kerberos options
#KerberosAuthentication no
#KerberosOrLocalPasswd yes
#KerberosTicketCleanup yes
#KerberosGetAFSToken no

# GSSAPI options
#GSSAPIAuthentication no
#GSSAPICleanupCredentials yes

AllowAgentForwarding yes
AllowTcpForwarding yes
#GatewayPorts no
X11Forwarding yes
X11DisplayOffset 10
X11UseLocalhost yes
PrintMotd no
#PrintLastLog yes
TCPKeepAlive yes
#UseLogin no
#UsePrivilegeSeparation yes
#PermitUserEnvironment no
ClientAliveInterval 600
#ClientAliveCountMax 3
UseDNS no
PidFile /var/run/ssh/ssh.pid
#MaxStartups 10
PermitTunnel yes
#ChrootDirectory none

# default banner path, set to none to disable
#Banner /home/targets/ssh/settings/banner
Banner none

XAuthLocation /bin/xauth
 
# Possible Ciphers: aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour128,arcfour256,arcfour,aes192-cbc,aes256-cbc,aes128-ctr,aes192-ctr,aes256-ctr
Ciphers aes256-ctr,aes128-ctr,arcfour256,arcfour,aes256-cbc,aes192-cbc,aes128-cbc,blowfish-cbc,3des-cbc

# Possible Macs: hmac-md5,hmac-sha1,hmac-ripemd160,hmac-sha1-96,hmac-md5-96
MACs hmac-sha1,hmac-md5,hmac-ripemd160,hmac-sha1-96,hmac-md5-96

# Possible Compression: delayed, yes, no
Compression no

# Macs: hmac-md5,hmac-sha1,hmac-ripemd160,hmac-sha1-96,hmac-md5-96
#Macs hmac-md5,hmac-sha1,hmac-ripemd160,hmac-sha1-96,hmac-md5-96

# override default of no subsystems
Subsystem	sftp	/sbin/sftp-server

#DenyUsers	
AllowGroups	p_ssh_remote
PermitRootLogin	no
# PermitRootLogin can be safely left to yes, if the root user is not in the group "ssh" then root cannot login, so this file need not be edited. (only /etc/groups will need to be edited, which means the server will never have to be restarted for any priv changes)

# Example of overriding settings on a per-user basis
#Match User anoncvs
#      X11Forwarding no
#      AllowTcpForwarding no
#      ForceCommand cvs server
