I built the vsftpd environment in Ubuntu box. And I chose the FTP protocol:
FTP over explicit TLS/SSL.
Then I succeeded to access that vsftpd service via FileZilla, but I cannot via WinSCP. (
"Connection Failed" error message was displayed.)
Is that the WinSCP setting issue or the setting on server side or other reason? Is there some advise?
Server-side vsftpd.conf: (Ubuntu Server 13.04, i386)
listen=YES
anonymous_enable=NO
local_enable=YES
write_enable=YES
local_umask=022
connect_from_port_20=YES
chroot_local_user=YES
chroot_list_file=/etc/vsftpd.chroot_list
ssl_enable=YES
require_ssl_reuse=NO
secure_chroot_dir=/var/run/vsftpd/empty
pam_service_name=vsftpd
rsa_cert_file=/etc/ssl/certs/vsftpd.pem
allow_writeable_chroot=YES
debug_ssl=YES
log_ftp_protocol=YES
pasv_enable=YES
pasv_min_port=65000
pasv_max_port=65050
Server-side vsftpd.log:
Mon Jul 8 13:48:07 2013 [pid 12923] CONNECT: Client "192.168.0.135"
Mon Jul 8 13:48:07 2013 [pid 12923] FTP response: Client "192.168.0.135", "220 (vsFTPd 3.0.2)"
Mon Jul 8 13:48:07 2013 [pid 12923] FTP command: Client "192.168.0.135", "AUTH SSL"
Mon Jul 8 13:48:07 2013 [pid 12923] FTP response: Client "192.168.0.135", "234 Proceed with negotiation."
Mon Jul 8 13:48:08 2013 [pid 12923] DEBUG: Client "192.168.0.135", "SSL version: TLSv1/SSLv3, SSL cipher: DES-CBC3-SHA, not reused, no cert"
Mon Jul 8 13:48:11 2013 [pid 12923] DEBUG: Client "192.168.0.135", "Connection terminated without SSL shutdown - buggy client?"
Client-side winscp.log: (Win7 64bit)
. 2013-07-08 13:47:03.028 Session name: 192.168.0.145/user1@192.168.0.145 (Stored session)
. 2013-07-08 13:47:03.028 Host name: 192.168.0.145 (Port: 21)
. 2013-07-08 13:47:03.028 User name: user1 (Password: Yes, Key file: No)
. 2013-07-08 13:47:03.028 Tunnel: No
. 2013-07-08 13:47:03.028 Transfer Protocol: FTP
. 2013-07-08 13:47:03.028 Ping type: C, Ping interval: 30 sec; Timeout: 15 sec
. 2013-07-08 13:47:03.028 Proxy: none
. 2013-07-08 13:47:03.028 FTP: FTPS: Explicit SSL; Passive: Yes [Force IP: A]
. 2013-07-08 13:47:03.028 Local directory: default, Remote directory: home, Update: Yes, Cache: Yes
. 2013-07-08 13:47:03.028 Cache directory changes: Yes, Permanent: Yes
. 2013-07-08 13:47:03.028 DST mode: 1; Timezone offset: 0h 0m
. 2013-07-08 13:47:03.028 --------------------------------------------------------------------------
. 2013-07-08 13:47:03.184 Connecting to 192.168.0.145 ...
. 2013-07-08 13:47:03.246 Connected with 192.168.0.145, negotiating SSL connection...
< 2013-07-08 13:47:03.246 220 (vsFTPd 3.0.2)
> 2013-07-08 13:47:03.246 AUTH SSL
< 2013-07-08 13:47:03.246 234 Proceed with negotiation.
. 2013-07-08 13:47:04.136 Connection failed.
* 2013-07-08 13:47:04.198 (EFatal) Connection failed.
* 2013-07-08 13:47:04.198 Connection failed.
* 2013-07-08 13:47:04.198 Proceed with negotiation.
Thanks in advance,
Matsuyama