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.
105 lines
2.5 KiB
105 lines
2.5 KiB
# Package generated configuration file
|
|
# See the sshd(8) manpage for details
|
|
|
|
# vm does not have multiple ips
|
|
# this instance of sshd listens to port 23
|
|
#
|
|
# # What ports, IPs and protocols we listen for
|
|
# ListenAddress 129.97.134.71
|
|
# ListenAddress 2620:101:f000:4901:c5c::f:1055
|
|
#
|
|
# Port 22
|
|
|
|
Port 23
|
|
|
|
# Use only protocol version 2
|
|
Protocol 2
|
|
|
|
# HostKeys for protocol version 2
|
|
HostKey /etc/ssh/ssh_mirror_host_ed25519_key
|
|
HostKey /etc/ssh/ssh_mirror_host_rsa_key
|
|
KexAlgorithms curve25519-sha256@libssh.org,diffie-hellman-group-exchange-sha256
|
|
Ciphers chacha20-poly1305@openssh.com,aes256-gcm@openssh.com,aes128-gcm@openssh.com,aes256-ctr,aes192-ctr,aes128-ctr
|
|
#MACs hmac-sha2-512-etm@openssh.com,hmac-sha2-256-etm@openssh.com,hmac-ripemd160-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-512,hmac-sha2-256,hmac-ripemd160,umac-128@openssh.com
|
|
|
|
# Privilege Separation is turned on for security
|
|
UsePrivilegeSeparation yes
|
|
|
|
# Logging
|
|
SyslogFacility AUTH
|
|
LogLevel INFO
|
|
|
|
# Authentication
|
|
UsePAM yes
|
|
StrictModes yes
|
|
PermitRootLogin no
|
|
LoginGraceTime 120
|
|
MaxStartups 25:30:100
|
|
|
|
# allow password auth
|
|
# # password authentication via PAM (single sign-on initial case)
|
|
# PasswordAuthentication no
|
|
PasswordAuthentication yes
|
|
PermitEmptyPasswords no
|
|
|
|
# keyboard-interactive authentication (like password, works with +needchange)
|
|
ChallengeResponseAuthentication no
|
|
|
|
# kerberos (single sign-on already authenticated case)
|
|
GSSAPIAuthentication no
|
|
GSSAPIKeyExchange no
|
|
GSSAPICleanupCredentials yes
|
|
GSSAPIStrictAcceptorCheck no
|
|
|
|
# public key authentication with authorized_keys
|
|
PubkeyAuthentication yes
|
|
|
|
# no single sign-on via hosts.equiv; we use kerberos
|
|
HostbasedAuthentication no
|
|
IgnoreRhosts yes
|
|
|
|
# no builtin kerberos auth with password, we do the same via pam_krb5
|
|
KerberosAuthentication no
|
|
|
|
# allow X forwarding
|
|
X11Forwarding no
|
|
X11DisplayOffset 10
|
|
|
|
# PAM prints these already
|
|
PrintMotd no
|
|
PrintLastLog no
|
|
|
|
# Allow client to pass locale environment variables
|
|
# AcceptEnv LANG LC_*
|
|
|
|
#Subsystem sftp /usr/lib/openssh/sftp-server
|
|
|
|
# Disallow forwarding
|
|
AllowTcpForwarding no
|
|
AllowStreamLocalForwarding no
|
|
AllowAgentForwarding no
|
|
|
|
# Don't execute rc
|
|
PermitUserRC no
|
|
|
|
# Disable TTY (might need to re-enable if needed)
|
|
PermitTTY no
|
|
|
|
# Don't print the last log, pointless in this environment
|
|
PrintLastLog no
|
|
|
|
# UseDNS
|
|
# To restrict keys to a certain host
|
|
UseDNS yes
|
|
|
|
# Allow users of the mirror group
|
|
AllowGroups push
|
|
DenyUsers mirror
|
|
|
|
# chroot
|
|
# we may want this
|
|
ChrootDirectory /mirror/merlin
|
|
|
|
Match group push
|
|
AuthorizedKeysFile /home/%u/.ssh/authorized_keys
|
|
|
|
|