vsftpd で ftp サーバを立てる手順。
- vsftpd をインストール・起動・自動起動設定
$ sudo yum -y install vsftpd $ sudo adduser ftpuser $ sudo passwd ftpuser $ sudo systemctl start vsftpd $ sudo chkconfig vsftpd on
- ftp クライアントをインストール
$ sudo yum -y install ftp
- 接続してみる
$ ftp localhost Connected to localhost (127.0.0.1). 220 (vsFTPd 3.0.2) Name (localhost:ec2-user): ftpuser 331 Please specify the password. Password: 230 Login successful. Remote system type is UNIX. Using binary mode to transfer files. ftp> ls 227 Entering Passive Mode (127,0,0,1,79,19). 150 Here comes the directory listing. -rw-r--r-- 1 1001 1001 346701734 Jul 07 03:00 apg_activitystream_cluster-***_20200706.csv 226 Directory send OK. ftp>