Closed dmathieu closed 8 years ago
Great, I will check it.
You can use it directly. I've just released v1.2.3.
Mathieu why to console says still Successfully generated site Sending site over FTP (host: maukasta.fi, port: 22, ftps: true) Connected to server. Sending site /Users/andreaskoutsoukos/.rvm/gems/ruby-2.2.1/gems/double-bag-ftps-0.1.2/lib/double_bag_ftps.rb:83:in `initialize': Connection refused - connect(2) for "maukasta.fi" port 21 (Errno::ECONNREFUSED)
I have but port 22 but it will show port 21 ECONNREFUSED ? I have test the connection other ftp clients and it works fine? What I miss here.
That's definitely strange, as it would appear we're properly using port 22.
Sending site over FTP (host: maukasta.fi, port: 22, ftps: true)
That could be a bug in the DoubleBagFTPS library. Could you try disabling ftp_secure
?
Now I had ftp_secure: false and port 22 but still /Users/andreaskoutsoukos/.rbenv/versions/2.2.1/lib/ruby/2.2.0/net/ftp.rb:228:in `initialize': Connection refused - connect(2) for "maukasta.fi" port 21 (Errno::ECONNREFUSED)
Could you try explicitely passing an active connection?
ftp_passive: false
It looks like this happens when DoubleBagFTPS calls open_socket, for which the host/port are set with makepasv which itself is in Net::FTP. An invalid port here seems to indicate your FTP server itself returned 21 as the required port.
Using an active connection might solve your issue.
Closes #52 cc @vjandrei