Most of the windows SFTP clients (like FileZilla) seem to be GUI-based. I need something I can call from batch files.
-
Isn't sftp just ssh. I think you really want something that is capable of scp or rsync via ssh. – Benbob Aug 13 '10 at 13:55
-
wsftp: http://docs.ipswitch.com/WS_FTP125/Help/Tools/English/index.htm?17981.htm?toc.htm – Alexan Sep 14 '16 at 20:55
9 Answers
pscp and psftp are very customizable(options) and light weight. Open source to boot.
http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html

- 1,066
- 8
- 9
-
Used it with a "ppk" and a mounted share on windows without issues ! – programaths Mar 05 '14 at 16:19
WinSCP has the command line functionality:
c:\>winscp.exe /console /script=example.txt
where scripting is done in example.txt
.
See http://winscp.net/eng/docs/guide_automation
Refer to http://winscp.net/eng/docs/guide_automation_advanced for details on how to use a scripting language such as Windows command interpreter/php/perl.
FileZilla does have a command line but it is limited to only opening the GUI with a pre-defined server that is in the Site Manager.

- 188,800
- 56
- 490
- 992

- 1,261
- 11
- 6
WinSCP can be called from batch file:
"C:\Program Files\WinSCP\WinSCP.exe" /console
Example commands:
option batch on
option confirm off
option transfer binary
open sftp://username@hostname:port -hostkey="ssh-rsa "

- 188,800
- 56
- 490
- 992

- 61
- 1
- 1
LFTP is great, however it is Linux only. You can find the Windows port here. Never tried though.
Achtunq, it uses Cygwin, but everything is included in the bundle.

- 1,598
- 17
- 22
This little application does the job for me. I could not find another CLI based client that would access my IIS based TLS/SSL secured ftp site: http://netwinsite.com/surgeftp/sslftp.htm

- 1
Filezilla is great and it can support command line arguments.

- 96,051
- 25
- 122
- 132

- 39,165
- 10
- 64
- 72
-
-
6No, the command line arguments are just for opening the UI already connected to a certain server. I want to script it with a batch file, the entire process has to be command-line driven. – Eggplant Jeff Aug 13 '10 at 13:58