VSFTPD でエラーが発生する。 Error: GnuTLS error -9: A TLS packet with unexpected length was received.

Filezilla+Cent OS上のvsftpでFTPS(FTPES)の環境作成中、エラーに遭遇。

コマンド:LIST
応答:150 Here comes the directory listing.  
エラー:GnuTLS error -9: A TLS packet with unexpected length was received.

原因はvsftpバージョンが古いこと。

vsftpd.i386 2.0.5-10.el5 から vsftpd.i386 2.0.5-16.el5_4.1にアップデートすることで解決しました。


# yum install vsftpd
Loading "installonlyn" plugin
Setting up Install Process
Setting up repositories
Reading repository metadata in from local files
Parsing package install arguments
Resolving Dependencies
--> Populating transaction set with selected packages. Please wait.
---> Downloading header for vsftpd to pack into transaction set.
vsftpd-2.0.5-16.el5_4.1.i 100% |=========================|  18 kB    00:00
---> Package vsftpd.i386 0:2.0.5-16.el5_4.1 set to be updated
--> Running transaction check

Dependencies Resolved

=============================================================================
 Package                 Arch       Version          Repository        Size
=============================================================================
Updating:
 vsftpd                  i386       2.0.5-16.el5_4.1  updates           140 k

Transaction Summary
=============================================================================
Install      0 Package(s)
Update       1 Package(s)
Remove       0 Package(s)

Total download size: 140 k
Is this ok [y/N]: y
Downloading Packages:
(1/1): vsftpd-2.0.5-16.el 100% |=========================| 140 kB    00:00
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
  Updating  : vsftpd                                                 [1/2]warning: /etc/vsftpd/vsftpd.conf created as /etc/vsftpd/vsftpd.conf.rpmnew
  Updating  : vsftpd                       ######################### [1/2]
  Cleanup   : vsftpd                       ######################### [2/2]

Updated: vsftpd.i386 0:2.0.5-16.el5_4.1
Complete!


# /etc/init.d/vsftpd restart
vsftpd を停止中:                                           [  OK  ]
vsftpd 用の vsftpd を起動中:                               [  OK  ]
  • /etc/vsftpd.conf
# FTPES Conf Additions
ssl_enable=YES
allow_anon_ssl=NO
force_local_data_ssl=NO
force_local_logins_ssl=NO
ssl_tlsv1=YES
ssl_sslv2=NO
ssl_sslv3=NO
rsa_cert_file=/etc/vsftpd/vsftpd.pem

これで、動作しました。