Linux

proFTPD 與 FTPS (openssl)

  • January 29, 2016

已經proFTPD從 webmin 安裝,它可以工作…

那我想支持FTPS

命令行

apt-get install openssl
mkdir /etc/proftpd/ssl
cd /etc/proftpd/ssl
openssl req -x509 -nodes -days 9999 -newkey rsa:2048 -keyout private.key -out public.crt

/etc/proftpd/proftpd.conf

<IfModule mod_tls.c>
TLSEngine                  on
TLSLog                     /var/log/proftpd/tls.log
TLSProtocol                SSLv23
TLSOptions                 NoCertRequest
TLSRSACertificateFile      /etc/proftpd/ssl/public.crt
TLSRSACertificateKeyFile   /etc/proftpd/ssl/private.key
TLSVerifyClient            off
TLSRequired                on
</IfModule>

nmap 本地主機

Starting Nmap 6.46 ( http://nmap.org ) at 2014-08-03 22:50 CEST
Nmap scan report for localhost (127.0.0.1)
Host is up (0.000010s latency).
Not shown: 995 closed ports
PORT      STATE SERVICE
21/tcp    open  ftp
22/tcp    open  ssh
80/tcp    open  http
3306/tcp  open  mysql
10000/tcp open  snet-sensor-mgmt

日誌文件Zilla(客戶端)

Status: Connecting to domain.com...
Response:   fzSftp started
Command:    open "user@domain.com" 22
Command:    Pass: ******
Status: Connected to domain.com
Error:  Connection closed by server with exitcode 1
Error:  Could not connect to server
Response:   fzSftp started
Command:    open "user@domain.com" 22

埠 22 是 ssh。這意味著您正在嘗試使用 sftp(通過 ssh 傳輸文件)而不是 ftps(使用 ssl 的 ftp)。但是對於 proftpd,您必須使用 ftp 或 ftps。

引用自:https://serverfault.com/questions/617612