SSH server.

This commit is contained in:
Miguel Scapolla 2016-05-15 20:24:57 -03:00
parent c9bed8e5d0
commit a986890564
1 changed files with 46 additions and 0 deletions

46
ssh-server.txt Normal file
View File

@ -0,0 +1,46 @@
/etc/ssh/sshd_config
----------------------
AcceptEnv no
AddressFamily inet
AllowAgentForwarding yes
AllowTcpForwarding yes
Banner /etc/issue.net
ChallengeResponseAuthentication no
Ciphers aes256-cbc,aes256-ctr
DebianBanner no
HostKey /etc/ssh/ssh_host_dsa_key
HostKey /etc/ssh/ssh_host_rsa_key
HostbasedAuthentication no
HostbasedUsesNameFromPacketOnly yes
IgnoreRhosts yes
KeyRegenerationInterval 3600
LogLevel INFO
LoginGraceTime 30
MACs hmac-md5,hmac-sha1
MaxAuthTries 3
MaxStartups 2
PermitEmptyPasswords no
PermitRootLogin no
PermitUserEnvironment no
Port 22
PrintLastLog yes
PrintMotd no
Protocol 2
PubkeyAuthentication yes
RSAAuthentication yes
RhostsRSAAuthentication no
ServerKeyBits 768
StrictModes yes
Subsystem sftp /usr/lib/openssh/sftp-server
TCPKeepAlive yes
UseDNS no
UsePAM yes
UsePrivilegeSeparation yes
X11DisplayOffset 10
X11Forwarding yes
# DenyUsers user1 user2 user3
# DenyGroups group1 group2
# AllowUsers user1 user2
# AllowGroups group1 group2