首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >proFTPD与FTPS (openssl)

proFTPD与FTPS (openssl)
EN

Server Fault用户
提问于 2014-08-03 18:38:34
回答 1查看 2.5K关注 0票数 1

已经从webmin安装了proFTPD,它可以工作.

那么我想支持FTPS

命令行

代码语言:javascript
复制
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

代码语言:javascript
复制
<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本地主机

代码语言:javascript
复制
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

Log FileZilla (client)

代码语言:javascript
复制
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
EN

回答 1

Server Fault用户

回答已采纳

发布于 2014-08-03 20:45:24

代码语言:javascript
复制
 Response:   fzSftp started
 Command:    open "user@domain.com" 22

22端口是ssh。这意味着您正在尝试使用sftp (文件通过ssh传输),而不是ftps (带ssl的ftp)。但是对于proftpd,您必须使用ftp或ftp。

票数 2
EN
页面原文内容由Server Fault提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://serverfault.com/questions/617612

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档