Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Centos下安装csftpd #5

Open
MarbloroX opened this issue May 15, 2022 · 0 comments
Open

Centos下安装csftpd #5

MarbloroX opened this issue May 15, 2022 · 0 comments

Comments

@MarbloroX
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant