I have a system to which some users need to connect trough regular SSH. I will name them the “Privileged Users”. In the same time this system should provide an SFTP server to “Anonymous” user (without any password, or any authentication method).
For the moment, this is my sshd_config:
########################################################################
# Common conofigurations for both Privileged Users and Anonymous
########################################################################
PermitRootLogin no
StrictModes yes
PrintMotd yes
AcceptEnv LANG LC_*
banner /etc/banner
AllowUsers fauve libidiloup anonymous
########################################################################
# Desired connfigurations for Privileged Users (who are not Anonymous)
########################################################################
Match User fauve, libidiloup
Protocol 2
IgnoreRhosts yes
RhostsRSAAuthentication no
HostbasedAuthentication no
Port 17129
PasswordAuthentication no
PermitEmptyPasswords no
UsePAM yes
UsePrivilegeSeparation yes
ChallengeResponseAuthentication no
PrintLastLog no
Subsystem sftp internal-sftp
KexAlgorithms [email protected],diffie-hellman-group-exchange-sha256
Ciphers [email protected],[email protected],[email protected],aes256-ctr,aes192-ctr,aes128-ctr
X11Forwarding yes
########################################################################
# Configuration for Anonymous
########################################################################
Match User anonymous
PasswordAuthentication yes
PermitEmptyPasswords yes
ChrootDirectory /mnt/bibliotheque
AllowTcpForwarding no
ForceCommand internal-sftp
X11Forwarding no
I am just worried about the security. Are the configurations of the Anonymous’s block anough?
Especially for the Protocol, RhostsRSAAuthentication, HostbasedAuthentication, UsePrivilegeSeparation, UsePAM options.
And is this configuration absolutely split the guest Anonymous from Privileged Users capabilities?