1

I'm wondering if there's any way to connect SFTP server with Windows' Command Prompt, by only executing batch file. Do I need to install additional software? which software?

The purpose is to do pretty basic file operations (upload, delete, rename) on remote SFTP server by executing a batch file.

And by the way, I have heard about python's Fabric library, and I wonder whether it's better solution than the batch script for the mentioned basic file operations?

Thanks a lot!

david lopez
  • 405
  • 2
  • 5
  • 16

2 Answers2

1

The built in FTP command doesn't have a facility for security. You can use winscp, an open source free SFTP client and FTP client for Windows.

Giova
  • 1,137
  • 1
  • 9
  • 17
0

Try using cURL. It allows to set up file transfers from the command line and supports SSL.

See http://www.unixlore.net/articles/using-curl-for-ftp-over-ssl-file.html

Andrzej
  • 1
  • 3