diff --git a/scripts/init-sftp.sh b/scripts/init-sftp.sh new file mode 100644 index 0000000..91dd0c5 --- /dev/null +++ b/scripts/init-sftp.sh @@ -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 <> /etc/ssh/sshd_config +Match Group sftp + ChrootDirectory /azaion-media + X11Forwarding no + ForceCommand internal-sftp + AllowTcpForwarding no + PasswordAuthentication yes +EOT +service ssh restart \ No newline at end of file