Linux中关于FTP服务器的加密配置(SSL)
来源:互联网 发布:网络硬盘录像机的设置 编辑:程序博客网 时间:2024/05/21 08:56
有时我们使用FTP进行连接是,需要对信息进行加密,即使用ssl或者tsl进行连接。这时我们需要用到openssl。安装配置好ssl之后,我们要安装openssl。
wget http://www.openssl.org/source/openssl-1.0.2g.tar.gztar -xvzf openssl-1.0.1f.tar.gzcd openssl-1.0.1f./configmakemake install逐步执行上边的命令,完成openssl的安装。
接下来要生成秘钥及证书:
新建目录,为了放置证书。
mkdir -p /etc/ssl/certschmod 700 /etc/ssl/certs执行生成证书的命令:
openssl req -x509 -nodes -days 365 -newkey rsa:1024 -keyout /etc/ssl/certs/vsftpd.pem -out /etc/ssl/certs/vsftpd.pem在此过程中需要填写部分信息以便ftp连接时,给予证书的提示,如下图:
然后进到/etc/ssl/certs目录下看证书有没有生成。
然后我们修改vsftpd的配置文件在最后添加如下信息:
# Turn on SSLssl_enable=YES # Allow anonymous users to use secured SSL connectionsallow_anon_ssl=YES # All non-anonymous logins are forced to use a secure SSL connection in order to# send and receive data on data connections.force_local_data_ssl=YESforce_anon_data_ssl=YES # All non-anonymous logins are forced to use a secure SSL connection in order to send the password.force_local_logins_ssl=YESforce_anon_logins_ssl=YES # Permit TLS v1 protocol connections. TLS v1 connections are preferredssl_tlsv1=YES # Permit SSL v2 protocol connections. TLS v1 connections are preferredssl_sslv2=NO # permit SSL v3 protocol connections. TLS v1 connections are preferredssl_sslv3=NO # Disable SSL session reuse (required by WinSCP)require_ssl_reuse=NO # Select which SSL ciphers vsftpd will allow for encrypted SSL connections (required by FileZilla)ssl_ciphers=HIGH # This option specifies the location of the RSA certificate to use for SSL# encrypted connections.rsa_cert_file=/etc/ssl/cert/vsftpd.pem配置修改完成后,重新vsftpd服务。
然后我们使用ftp工具进行连接:
这样一个可加密的ftp服务器就搭建好了。
0 0
- Linux中关于FTP服务器的加密配置(SSL)
- Linux 搭建支持SSL加密传输的ftp服务器
- ssl加密ftp服务器
- vsftpd + ssl 搭建加密传输的安全FTP服务器
- linux中FTP服务器配置
- Linux命令行下登录ssl加密的ftp
- linux+svn+apache+ssl+ftp配置安全易于管理的svn服务器
- Linux FTP服务器的配置
- Vsftpd配置SSL加密FTP数据传输
- Linux中FTP服务器配置与管理
- Linux中安装配置ftp服务器方法
- Linux中安装配置FTP服务器方法
- Linux中安装配置ftp服务器方法
- 帶ssl加密的FTP客戶端上傳代碼(C#)
- 关于ftp服务器的配置与启动
- linux ftp服务器配置
- linux FTP服务器配置
- linux ftp服务器配置
- 面试常见问题
- Struts 2 + Hibernate + Spring 整合要点
- 图片模糊效果
- Struts2 入门实例
- VMware虚拟机配置Ubuntu桥接方式(Bridged)使虚拟机和宿主机能互相ping通
- Linux中关于FTP服务器的加密配置(SSL)
- 实体关联种类
- C++中delete和delete[]的区别
- 大型网站技术架构学习笔记
- 手把手教你整合 SpringMvc+Spring+MyBatis+Maven
- 百度翻译
- 微信开发笔记
- 【PHP】Yii2团队基于接口(interface)开发方式最佳实践
- Java RMI 简单示例