FTP command line program needed - recommendations please

peterworks

Ye Olde Bowler
I have been using the command line option of NcFTP for a while now with no problem. Within the last couple of days my host has rejected the connection with:
Sorry, cleartext sessions and weak ciphers are not accepted on this server.
Please reconnect using TLS security mechanisms.
Connection closed by remote host.

NcFTP does not have a TLS option so can anyone recommend a free program that does.

Thanks

Edit: I should mention that I use FileZilla for general FTPing but ,unfortunately, it does not have a command line option
 
Last edited:
hello peterworks

I use FileZilla, , it enables me to FTP to my Humax Fox-T2s and my Buffalo TeraStation TS-XLs, just had another look and found

FileZilla enter custom command.JPG

This option appears when you select [ Enter custom command ] from the [ Server ] menu option, it's the second from the bottom, is this of any help
 
Thanks @Andrea Edwards
I too use FileZilla but unfortunately it does not give me a command line option I can use in, say, a batch file.
For example this is what I used (NCFtp) previous to my ISP requiring TLS:
ncftpput -f Details.txt /public_html/events myical.ics

I know there are paid for versions available but I only use this facility for a couple of things so not worth my while purchasing.
Am still looking around myself but do not hold out much hope...
 
I too use FileZilla but unfortunately it does not give me a command line option I can use in, say, a batch file.
For example this is what I used (NCFtp) previous to my ISP requiring TLS:
ncftpput -f Details.txt /public_html/events myical.ics

I know there are paid for versions available but I only use this facility for a couple of things so not worth my while purchasing.
Am still looking around myself but do not hold out much hope...
How about winscp?

winscp.com /command
"open ftp://user:password@host/"
"get /path/file.ext c:\"
"exit"

See https://winscp.net/eng/docs/guide_automation
 
Last edited:
hello peterworks

did a search for your desired method and found

= = = = =
Connect to the FTP client using the Windows command line
This article provides procedures on using the Windows command prompt to connect to an FTP server.

Oct 11, 2018•Success Center
FIRST PUBLISHED DATE 10/11/2018 3:15 PM
LAST PUBLISHED DATE 10/11/2018 3:15 PM
OVERVIEW
This article describes how to use the Windows command prompt to connect to an FTP server.
ENVIRONMENT
Serv-U FTP Server 14.x;Serv-U FTP Server 15.0;Serv-U FTP Server 15.1
CAUSE

RESOLUTION
  1. Click Start, select Run, and then enter cmd to give you a blank c:\> prompt.
  2. Enter ftp.
  3. Enter open.
  4. Enter the IP address or domain that you want to connect to.
  5. Enter your user name and password when prompted.
You can now send FTP commands to the server.

Some common commands used by the command line client are Put, Get, Dir, and CD. The following example shows a successful login via the command line:
C:\>ftp
ftp> open
To 127.0.0.1
Connected to 127.0.0.1.
220 Serv-U FTP Server v4.2 for WinSock ready...
User (127.0.0.1:(none)): user_name
331 User name okay, need password.
Password:your_password
230 User logged in, proceed.
ftp> dir

= = = = =

hope this adds to the pot
 
tries again with another search with [ ftp and cli tls ], got this

Give this a try:

$ lftp
lftp :~> set ftp:ssl-force true
lftp :~> connect ftp.domain.tld
lftp ftp.domain.tld:~> login <username>

NOTE: If the server is making use of self signed certificates you may need to add this set as well:

lftp :~> set ssl:verify-certificate no
 

here's a bit more from same link

For implicit TLS / SSL using lftp please do these commands:

connect ftps://ftp.domain.tld

Note that this will connect you to port 990 directly using TLS.



For explicit TLS / SSL:

set ftp:ssl-force true
connect ftp://ftp.domain.tld

...which will connect you to port 21 with plain-text initially but then will explicitly switch you to TLS using FTP protocol AUTH command.



You can add -d parameter to connect (like connect -d ftp://ftp.domain.tld) to enable debug output to ensure that you are connecting using the method you want.



Tested on lftp v. 4.8.4.
 
Yes, I was going to point that one out. Perhaps a Super Moderator could edit that post and put [plain]"open ftp://user:password@host/"[/plain] instead. ;) :D
 
Last edited:
Levity – you just happen not to like being the butt of the joke (but you set yourself up for it). Also the important function of pointing out a certain contributor was providing random answers without checking they met the criteria.
 
Back
Top