FTPサーバーたてる
fedora16でFTPサーバーをたてるメモ。
サーバー、クライアントインストール
yum -y install proftpd
yum -y install ftp
バージョン
ftp-0.17-53.fc16.i686
proftpd-1.3.4a-7.fc16.i686
サーバー起動
systemctl start proftpd.service
systemctl enable proftpd.service
ポート空いてるか確認
$ netstat -lan | grep 21
tcp 0 0 :::21 :::* LISTEN
接続確認
$ ftp localhost
Connected to localhost (127.0.0.1).
220 FTP Server ready.
Name (localhost:*****): *****
331 Password required for *****
Password:
530 Login incorrect.
Login failed.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp>
残念。失敗。
既知バグだった。
https://bugzilla.redhat.com/show_bug.cgi?id=784286
/etc/shellsに
/bin/sh
/bin/bash
の2行を追加してproftpdを再起動、再度テスト。
$ ftp localhost
Connected to localhost (127.0.0.1).
220 FTP Server ready.
Name (localhost:*****): *****
331 Password required for *****
Password:
230 User ***** logged in
Remote system type is UNIX.
Using binary mode to transfer files.
ftp>
OK