用ProFTPD构建FTP服务器
生活随笔
收集整理的這篇文章主要介紹了
用ProFTPD构建FTP服务器
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
配置 ProFTPD 然后,通過修改相應(yīng)配置文件配置ProFTPD。 [root@sample ~]# vi /etc/proftpd.conf ← 修改ProFTPD的配置文件 ServerType standalone ← 找到這一行,在行首添加“#” ↓ #ServerType standalone ← 變?yōu)榇藸顟B(tài),不使用常駐模式 #ServerType inetd ← 找到這一行,去掉行首的“#” ↓ ServerType inetd ← 變?yōu)榇藸顟B(tài),通過超級服務(wù)器來啟動ProFTPD DefaultRoot ~ !adm ← 找到這一行,將“ !adm”改為“/public_html !wheel” ↓ DefaultRoot ~/public_html !wheel ← 變?yōu)榇藸顟B(tài),使除wheel組用戶的根目錄為public_html 找到TLS設(shè)置的語句群,如下: # TLS # Explained at http://www.castaglia.org/proftpd/modules/mod_tls.html ---------------------------------------------------------------- #TLSEngine on #TLSRequired on #TLSRSACertificateFile /usr/share/ssl/certs/proftpd.pem #TLSRSACertificateKeyFile /usr/share/ssl/certs/proftpd.pem #TLSCipherSuite ALL:!ADH:!DES #TLSOptions NoCertRequest #TLSVerifyClient off ##TLSRenegotiate ctrl 3600 data 512000 required off timeout 300 #TLSLog /var/log/proftpd/tls.log ---------------------------------------------------------------- ↓將以上水平線間部分的語句,每行行首的“#”都去掉,變?yōu)橄旅嫠骄€間的狀態(tài): ---------------------------------------------------------------- TLSEngine on TLSRequired on ← 只允許TLS方式的連接(如果將on改為off,普通方式也被允許) TLSRSACertificateFile /usr/share/ssl/certs/proftpd.pem TLSRSACertificateKeyFile /usr/share/ssl/certs/proftpd.pem TLSCipherSuite ALL:!ADH:!DES TLSOptions NoCertRequest TLSVerifyClient off #TLSRenegotiate ctrl 3600 data 512000 required off timeout 300 TLSLog /var/log/proftpd/tls.log
轉(zhuǎn)載于:https://www.cnblogs.com/chris-oil/p/3618266.html
總結(jié)
以上是生活随笔為你收集整理的用ProFTPD构建FTP服务器的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 手动快捷创建用户和密码
- 下一篇: Sicily 6768. Log Boo