Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- FTP on Linux for dummies (Debian)
- sudo apt-get update -yproftp
- sudo apt-get upgrade -y
- sudo apt-get install proftpd openssl -y
- cd /etc/proftpd
- sudo nano proftpd.config
- > uncomment Defaultroot
- > choose port
- > set passive port range
- > uncomment Include /etc/proftpd/tls.conf
- > ctrl+x > y
- sudo nano tls.conf
- TLSEngine on
- TLSLog /var/log/proftpd/tls.log
- TLSProtocol SSLv3 TLSv1
- TLSOptions NoCertRequest AllowClientRenegotiations NoSessionReuseRequired
- TLSRSACertificateFile /etc/proftpd/ssl/proftpd.cert.pem
- TLSRSACertificateKeyFile /etc/proftpd/ssl/proftpd.key.pem
- TLSVerifyClient off
- TLSRequired on
- TLSRenegotiate none
- TLSCipherSuite ALL :!ADH:!DES
- > ctrl+x > y
- sudo mkdir ssl
- sudo openssl req -new -x509 -days 365 -nodes -out /etc/proftpd/ssl/proftpd.cert.pem -keyout /etc/proftpd/ssl/proftpd.key.pem
- cd
- sudo nano /etc/shells
- Add /bin/false to the bottom > ctrl+x > y
- sudo mkdir ftp/
- sudo useradd username -p password -d /path/to/ftp -s /bin/false
- sudo passwd username
- password
- password
- sudo chown -R user:user /path/to/ftp
- sudo service proftpd restart
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement