Have been trying for 2 hours with lftp commands and any combinations/variations of them but won't connect.
lftp :~> user usr pwd;
lftp usr@:~> set ftp:ssl-force true;
lftp usr@:~> set ftp:ssl-protect-data true;
lftp usr@:~> open ftps://site;
---- Resolving host address...
---- 1 address found: ip.ip.ip.ip//<-I removed that
lftp site:~> ls
---- Connecting to site (ip.ip.ip.ip) port 990
**** Socket error (Connection refused) - reconnecting
---- Closing control socket
Changing to port 22 gives me:
gnutls_handshake: A TLS packet with unexpected length was received.
With filezilla I can connect choosing protocol sftp ssh protocol but that doesn't allow me to automate sending a bunch of files in different locations so I have to click myself silly to get them there.
[update]
Any combination of set ftp:ssl-auth TLS-C
, set ftp:ssl-auth TLS
, set ftp:ssl-auth SSL
or combinations without set ftp:ssl-force true;
or combinations without set ftp:ssl-protect-data true;
give me the same handshake problem when using port 22
Thank you for reading my question and hope you can help.