0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

FTPのインストールから接続できるようになるまで

Posted at

■環境
さくらのVPS:RockyLinux

ftpの設定について、備忘録
サーバへftpをインストール


sudo yum install vsftpd
sudo cp /etc/vsftpd/vsftpd.conf /etc/vsftpd/vsftpd.conf.org
sudo vi /etc/vsftpd/user_list #アクセスを許容するユーザを追加
sudo systemctl enable vsftpd.service #サービスを有効化
sudo systemctl status firewalld #firewallのステータスを確認
sudo systemctl enable firewalld #firewallを有効化
sudo firewall-cmd --add-service=ftp 
sudo firewall-cmd --list-services
sudo systemctl restart vsftpd.service #再起動
sudo useradd user_name # ftp用のユーザを追加
sudo passwd user_name # ftpユーザのPWを変更

httpd.conf


anonymous_enable=NO
local_enable=YES
write_enable=YES
local_umask=022
allow_ftpd_full_access
dirmessage_enable=YES
xferlog_enable=YES
connect_from_port_20=YES
xferlog_std_format=YES
ascii_upload_enable=YES
ascii_download_enable=YES
chroot_local_user=YES
chroot_list_enable=YES
listen=NO
listen_ipv6=YES
userlist_deny=NO
pam_service_name=vsftpd
userlist_enable=YES
use_localtime=YES

セキュリティの観点的には正しいか不明。
かつ設定の不整合があるかもしれないが、一応これで起動した。
各設定については、後日見直す予定。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?