Questions tagged [winscp]

WinSCP is an open source free SFTP, FTP and SCP client for Windows. WinSCP is commonly used by developers to upload their code, such as PHP, to web servers. Beyond this, WinSCP offers scripting and .NET assembly to automate file transfer tasks.

WinSCP is an open source free SFTP, FTP, WebDAV and SCP client for Windows. Its main function is file transfer between a local and a remote computer.

WinSCP is commonly used by developers to upload their code, such as PHP, to web servers.

WinSCP can be used to automate file transfer tasks, either using basic scripting interface or, for advanced tasks, using .NET assembly.

For details see:

For questions specific to the WinSCP .NET assembly, in addition to the main tag use also the .

1060 questions
4
votes
1 answer

WinSCP .NET assembly - Remove files (not directories) after GetFiles

I'm trying to download files from a big tree of recursive directories, and I want the downloaded files to be removed after download. When I put true in remove parameter of GetFiles, it removes all the directories, but I want it to remove only the…
user5441417
  • 101
  • 3
  • 9
4
votes
2 answers

Setting WinSCP with explicit TLS encryption

I am trying to connect to a FTP server with following setting This setting works well and I can connect to FTP server via GUI (version 5.7.5) However, when I try to convert these settings to script winscp.com /command "option batch abort" "option…
wraith
  • 351
  • 3
  • 18
4
votes
1 answer

How to connect remote SFTP from Azure web site scheduled job

I have one console app which will be scheduled as job in AZURE web site. From that console app I want to connect remote SFTP and get all files and save them in my folder inside AZURE web site.Also if it possible remove them from SFTP after transfer.
RASKOLNIKOV
  • 732
  • 2
  • 9
  • 20
4
votes
1 answer

How do I open a WinSCP GUI session from command line?

If I have a session named "hpc" and I run: winscp hpc I get into command line mode. How do I run the GUI and open a session from the command line (Windows)?
Zohar Levi
  • 614
  • 6
  • 16
4
votes
1 answer

Use private key in WinSCP SCP script

I have been trying to figure this out. I hope someone can help. I have written a batch script to SCP files from a Unix server and store them in a Windows server. I have a key established. However the server is still asking me for a "password". …
Stan Stewart
  • 41
  • 1
  • 1
  • 3
4
votes
1 answer

WinSCP commandline: Hostkey not found in cache error

I am trying to connect to Unix server from WinSCP commandline for the first time. It closes with the the following error: The server's host key was not found in the cache. You have no guarantee that the server is the computer you think it…
Ekata Bavkar
  • 83
  • 2
  • 9
4
votes
1 answer

Synchronizing today's files from remote to local directory using WinSCP

I need to synchronize files from remote to local directory using the following command synchronize local "D:\ftp\OUT" /out It works fine but is there a way to download files which their dates of creation are today?
user3548593
  • 499
  • 1
  • 7
  • 22
4
votes
2 answers

MySQLdump to directory with WinSCP or similar

On my CentOS VPS server I currently backup all my hosted website files via an automated SFTP session using a script. I use WinSCP for this. Unfortunately, this does not include a backup of the MySQL databases which I have about 20 of. Is it best to…
Sara44
  • 422
  • 1
  • 9
  • 25
4
votes
1 answer

WinSCP .NET library: Connect to SFTP server without specifying SSH host key fingerprint

In the current stable release of WinSCP, it seems that using SshHostKeyFingerprint is mandatory and there are no ways to connect to SFTP server without that in SessionOptions. I can see that the ability to bypass is added to the beta (5.2) but I was…
user446923
  • 553
  • 1
  • 10
  • 20
4
votes
4 answers

Importing WinSCP source files into Microsoft Visual Studio 2008?

I am pretty new to programming. I would like to download an open source project and build it in my Microsoft Visual Studio 2008. In fact, I tried to import and build the application WinSCP: https://sourceforge.net/projects/winscp/ But I didn’t…
David Don
4
votes
2 answers

Why does FileZilla work without knowing any keys, but WinSCP doesn't?

I got the connection details of a SFTP server, connected to it with FileZilla, and then successfully downloaded a file from that SFTP. The only details I had was host, port, user and pass. Now I'm trying to connect to this same server trough WinSCP…
Michiel Cornille
  • 2,067
  • 1
  • 19
  • 42
3
votes
4 answers

Change file extension after FTP transfer

I'm transferring a small text file over FTP and trying to change the file extension after the transfer's been completed so the destination server can process the contents, how do I do this, the commands on winscp.net aren't particularly helpful but…
Dani
  • 2,480
  • 3
  • 21
  • 27
3
votes
3 answers

Persistent WinSCP connection for batch copy in Python

I'm trying to copy thousands files to a remote server. These files are generated in real-time within the script. I'm working on a Windows system and need to copy the files to a Linux server (hence the escaping). I currently have: import…
Duke
  • 348
  • 1
  • 6
  • 16
3
votes
1 answer

How do I convert public RSA key (in text form) to private PPK key file?

I have been 'emailed' a "PUBLIC" AES 256 RSA Key (for example): "ssh-rsa AAASDHFhdfsdSDHF2SHdf932hSDF29SDFHSDF2SDFHSDF23SHDFewhw92sdfhSDFS29843SdhsdfZSDH= some@bunk" Now, I am being asked to use it for a WinSCP SFTP session connection. I see…
Peter
  • 5,251
  • 16
  • 63
  • 98
3
votes
3 answers

How to get a directories file size from an FTP protocol in a .NET application

I am currently making a small .NET console application to do an automateed backup of some of my files onto my server. The issue that I am running into is that I've had some bad weather on my end which led to some power and network outages. During…
Seb
  • 3,414
  • 10
  • 73
  • 106