Guest User

Untitled

a guest
Sep 13th, 2016
42
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. FTP on Linux for dummies (Debian)
  2.  
  3. sudo apt-get update -yproftp
  4. sudo apt-get upgrade -y
  5. sudo apt-get install proftpd openssl -y
  6.  
  7. cd /etc/proftpd
  8. sudo nano proftpd.config
  9. > uncomment Defaultroot
  10. > choose port
  11. > set passive port range
  12. > uncomment Include /etc/proftpd/tls.conf
  13. > ctrl+x > y
  14.  
  15. sudo nano tls.conf
  16.  
  17. TLSEngine on
  18. TLSLog /var/log/proftpd/tls.log
  19. TLSProtocol SSLv3 TLSv1
  20. TLSOptions NoCertRequest AllowClientRenegotiations NoSessionReuseRequired
  21. TLSRSACertificateFile /etc/proftpd/ssl/proftpd.cert.pem
  22. TLSRSACertificateKeyFile /etc/proftpd/ssl/proftpd.key.pem
  23. TLSVerifyClient off
  24. TLSRequired on
  25. TLSRenegotiate none
  26. TLSCipherSuite ALL :!ADH:!DES
  27.  
  28. > ctrl+x > y
  29.  
  30. sudo mkdir ssl
  31. sudo openssl req -new -x509 -days 365 -nodes -out /etc/proftpd/ssl/proftpd.cert.pem -keyout /etc/proftpd/ssl/proftpd.key.pem
  32.  
  33. cd
  34.  
  35. sudo nano /etc/shells
  36. Add /bin/false to the bottom > ctrl+x > y
  37. sudo mkdir ftp/
  38. sudo useradd username -p password -d /path/to/ftp -s /bin/false
  39. sudo passwd username
  40. password
  41. password
  42. sudo chown -R user:user /path/to/ftp
  43.  
  44. sudo service proftpd restart
RAW Paste Data