mirror of
https://github.com/azaion/ai-training.git
synced 2026-04-22 06:56:34 +00:00
330d4b914a
add export py add dll
20 lines
405 B
Bash
20 lines
405 B
Bash
sudo -s
|
|
apt update
|
|
apt upgrade
|
|
apt install -y ssh
|
|
|
|
adduser azaionsftp
|
|
|
|
mkdir /azaion-media/sftphome
|
|
chown -R azaionsftp:azaionsftp /azaion-media/sftphome/
|
|
chmod -R 755 /azaion-media/sftphome/
|
|
|
|
cat <<EOT >> /etc/ssh/sshd_config
|
|
Match Group azaionsftp
|
|
ChrootDirectory %h
|
|
X11Forwarding no
|
|
ForceCommand internal-sftp
|
|
AllowTcpForwarding no
|
|
PasswordAuthentication yes
|
|
EOT
|
|
service ssh restart |