Skip to content

Centos下安装csftpd #5

Open
Open
@MarbloroX

Description

@MarbloroX

yum install -y vsftpd

#systemctl status vsftpd 状态检查

systemctl start vsftpd 启动

systemctl enable vsftpd 开机运行

生成用于加密连接的 SSL 证书,输入一个CN即可,其它留空生成

openssl req -x509 -nodes -days 3650 -newkey rsa:2048 -keyout /etc/vsftpd/vsftpd.pem -out /etc/vsftpd/vsftpd.pem

Generating a RSA private key

...........................................+++++
.+++++
writing new private key to '/etc/vsftpd/vsftpd.pem'

You are about to be asked to enter information that will be incorporated
into your certificate request.
What you are about to enter is what is called a Distinguished Name or a DN.
There are quite a few fields but you can leave some blank
For some fields there will be a default value,
If you enter '.', the field will be left blank.

Country Name (2 letter code) [XX]:CN
State or Province Name (full name) []:
Locality Name (eg, city) [Default City]:
Organization Name (eg, company) [Default Company Ltd]:
Organizational Unit Name (eg, section) []:
Common Name (eg, your name or your server's hostname) []:
Email Address []:

vi /etc/vsftpd/vsftpd.conf

确保以下设置,它们应该是默认值

anonymous_enable=NO
local_enable=YES
write_enable=YES

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions