LoginSignup
0
0

FTP環境構築について

Posted at

FTP環境を構築したときのメモ

※最低限のFTP環境構築のためセキュリティは考慮されていません。必要であれば適宜設定してください。

インストール

インストール
$ sudo yum install vsftpd

設定

元々の設定ファイルをバックアップ
$ sudo cp -p /etc/vsftpd/vsftpd.conf /etc/vsftpd/vsftpd.conf.org
vsftpd.confの編集
$ sudo vim /etc/vsftpd/vsftpd.conf
・・・
chroot_list_enable=YES ←コメント解除
・・・
chroot_list_file=/etc/vsftpd/chroot_list ←コメント解除
・・・
pasv_address=FTPサーバ(自身)のIP ←IPを記載

----
※IP確認の際は以下を実行してください
$ curl http://xxx.xxx.xxx.xxx/latest/meta-data/public-ipv4

FTPの起動および自動起動

sudo service vsftpd start
sudo chkconfig vsftpd on

FTPユーザの作成

sudo su
useradd {ユーザ名}
passwd {パスワード}

参考

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