Contents
Vsftpd設定
Slackwareでは「vsftpd」がデフォルトでインストールされていますが、有効化されていません。
「vsftpd」の設定ファイルを編集して起動させます。
1 2 3 4 5 6 7 8 9 10 |
# vi /etc/vsftpd.conf 12行目NOに変更 anonymous_enable=NO 113行目YESに変更 listen=YES 最終行に追加 use_localtime=YES |
起動は、「inetd」が担当しているのでftpを有効化する
1 2 3 4 5 6 7 8 9 10 11 12 |
# vi /etc/inetd.conf 28行目コメント解除 23 # time dgram udp wait root internal 24 # 25 # These are standard services: 26 # 27 # Very Secure File Transfer Protocol (FTP) server. 28 ftp stream tcp nowait root /usr/sbin/tcpd vsftpd 29 # 30 # Professional File Transfer Protocol (FTP) server. 31 # ftp stream tcp nowait root /usr/sbin/tcpd proftpd |
起動する
1 2 |
# chmod +x /etc/rc.d/rc.inetd # /etc/rc.d/rc.inetd start |
ファイアウォールでFTPポートを開放する
1 2 |
# ufw allow ftp # ufw reload |
Vsftpd起動確認
FTPクライアントで確認
FileZillaを起動し、最初にFileZillaの設定を変更する、メニュー「Edit」「Settings」
![](https://korodes.com/wp-content/uploads/2023/09/1ebbb2956a41c7d0fe705b8482e963d1.png)
左ペインの「Connection」「SFTP」
右ペインの「Add key File」クリック
![](https://korodes.com/wp-content/uploads/2023/09/3c3fad6666bf91add1bc459e252bd7ed.png)
Windowsに保存した「id_ed25519.ppk」を開き「OK」をクリック
![](https://korodes.com/wp-content/uploads/2023/09/1753238e596e2bed23e367281ca056a1.jpg)
![](https://korodes.com/wp-content/uploads/2023/09/f4c6ccd1e7a37ef6f602afdf194f6c21.jpg)
次の画面が出れば[OK]クリック
![](https://korodes.com/wp-content/uploads/2023/09/b838194356f6631f55ed4db2f4fd33ed.jpg)
「Password」欄には、SSH公開鍵作成時に設定したパスワード
![](https://korodes.com/wp-content/uploads/2023/09/fe8f67e0e381892d05497c5057a74312.jpg)
初期画面に戻り「File」メニューから「Site Manager」を選択
![](https://korodes.com/wp-content/uploads/2023/09/bd86593841851ee6f6a49f4d2e2df89b.png)
「New site」をクリックし、
Protocol : SFTP-SSH File Transfer Protocol
Host : サーバーのIPアドレス
Port : SSHポート番号
Logon Type : Ask for password
User : ログインユーザー名
を入力後、「Connect」クリック
![](https://korodes.com/wp-content/uploads/2023/09/99414254ea06a50d3b276bb365de8532.png)
Password : SSH公開鍵作成時に設定したパスワード
![](https://korodes.com/wp-content/uploads/2023/09/62891db85670fbee841467d8a2cda3f5.png)
左側にWindowsのディレクトリ、右側に Slackwareのディレクトリが表示されれば、接続成功です。
![](https://korodes.com/wp-content/uploads/2023/09/9391a6e09abd2031e98bce63af9870d7.jpg)