Merge remote-tracking branch 'origin/main'

This commit is contained in:
zxsanny
2024-08-13 01:58:01 +03:00
+17
View File
@@ -0,0 +1,17 @@
sudo -s
apt update
apt upgrade
apt install -y ssh
groupadd sftp
useradd -g sftp -M -p Azaion1000sftp01 -d /azaion-media -s /bin/false sftpuser
cat <<EOT >> /etc/ssh/sshd_config
Match Group sftp
ChrootDirectory /azaion-media
X11Forwarding no
ForceCommand internal-sftp
AllowTcpForwarding no
PasswordAuthentication yes
EOT
service ssh restart