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
7
votes
2 answers

WinSCP: The server rejected SFTP connection, but it listens for FTP

I am using the WinSCP in order to download files using FTP protocol. I got this error in the XML log. Any idea? Network error: Connection to "example.com" refused. The server rejected SFTP connection, but it listens for FTP connections. Did you…
user3548593
  • 499
  • 1
  • 7
  • 22
7
votes
2 answers

WinSCP: Where can I find the list of successfully transfered files? Like in FileZilla

When I transfer files with WinSCP, I only see them while they are being transferred. Once the files are uploaded/downloaded the queue becomes empty and no "history" is available. Am I missing something? Is there a plugin to see successful transfers?
makemake
  • 73
  • 1
  • 1
  • 3
6
votes
3 answers

Passing parameters to winscp.com command line

I am trying to write a WinSCP script. I tried the example at, https://winscp.net/eng/docs/guide_automation#parametrized but the parameter value is not taken by the script. When the script is invoked as, winscp.com /script=testscript /parameter…
digdug
  • 211
  • 2
  • 4
  • 14
6
votes
1 answer

Method not found exception (EventWaitHandle..ctor) using WinSCP .NET

I am trying to connect to SFTP server using PowerShell, and using WinSCP .NET assembly. Code is not able to open the session ($session.Open($sessionOptions)). In the logs I found, Exception: System.MissingMethodException: Method not found: 'Void…
Ktn Patel
  • 141
  • 1
  • 6
6
votes
1 answer

SFTP file transfer in SSIS

I've read a whole bunch of different forums on this but cant seem to get mine to work. I need to transfer a file from my local machine to an SFTP server using SSIS. Here is what I've already done: I downloaded WinSCP Created a saved connection in…
tzee
  • 65
  • 1
  • 5
6
votes
2 answers

WinSCP .NET assembly in PowerShell - Creating SessionOptions - The value supplied is not valid, or the property is read-only

I'm trying to automate the transfer of files with WinSCP using PowerShell. I've installed .NET assembly. In the code I've added, I've taken out credentials and hostname for privacy and I'm also using the full path to WinSCPnet.dll. Here is the error…
CrashleyS
  • 111
  • 3
  • 12
6
votes
2 answers

WinSCP error code 4 when uploading large file

I'm trying to move a file from my local machine to another machine into which I've SFTP-ed. The file has 160MB. The transfer stops after a quarter of the file is moved over, with the following message: Copying files to remote side failed General…
bsky
  • 19,326
  • 49
  • 155
  • 270
6
votes
2 answers

Export (migrate) sessions from WinSCP and import into FileZilla

I have been using WinSCP for a while and have decided to give FileZilla another go for a while before I make the final decision. Is there a way to export all my saved sessions from WinSCP and import them into FileZilla?
user1683285
  • 423
  • 2
  • 5
  • 11
6
votes
2 answers

WinSCP .NET assembly refusing RSA/DSA key fingerprint

I am trying to connect up to a WinSCP server using the WinSCP .NET assembly. The problem I am having is that it bombs checking the host key fingerprint. I have created a RSA key. My code is as follows: var server = new…
Jim
  • 149
  • 2
  • 11
6
votes
7 answers

Problems with WinSCP with end-of-line style on Ubuntu Linux when using SVN Diff

My files are on a remote Ubuntu Linux server. When I download the files and edit it in either the WinSCP text editor or Notepad++, the file end-of-line style changes to Windows. So when I resave the file back to Ubuntu the lines are off and SVN…
Tihom
  • 3,384
  • 6
  • 36
  • 47
6
votes
3 answers

Switching users using WinSCP between different accounts

Is there way to switch between user accounts using WinSCP? When I am using PuTTY, I can use su command to switch users between different accounts. For an example: kitis@localhost$ kitis@localhost$ su abc abc@localhost$ In the same way, when I am…
KItis
  • 5,476
  • 19
  • 64
  • 112
6
votes
4 answers

WinSCP: How to make sure SFTP upload gets renamed from .zip.filepart to .zip?

Using the .NET assembly of WinSCP to upload a file. OperationResultBase.Check() is throwing the following error: WinSCP.SessionRemoteException: Transfer was successfully finished, but temporary transfer file 'testfile.zip.filepart' could not be…
sigil
  • 9,370
  • 40
  • 119
  • 199
5
votes
1 answer

How do you limit the number of files you want to view using winscp?

Is there anyway to load only selected number of files using winscp .. there are more than 50000 files which hangs my winscp!
Pan
  • 6,455
  • 5
  • 27
  • 27
5
votes
1 answer

"Upload of file '...' was successful, but error occurred while setting the permissions and/or timestamp" when using WinSCP .NET assembly in PowerShell

Exception calling "Check" with "0" argument(s): "Upload of file '2019-06-11.zip' was successful, but error occurred while setting the permissions and/or timestamp. If the problem persists, turn off setting permissions or preserving…
user3542587
  • 313
  • 1
  • 4
  • 13
5
votes
2 answers

Jupyter notebook kernel disconnecting / dead after sometime and cannot reconnect to amazon EC2 instance and complete ( currently running) operation.

When I connect to EC2 instance via Mobaxterm, after some period of time my jupyter notebook's kernel loses connection. And some highly time-consuming operations /(Currently running tasks) are required to be re-performed again and again and are…
1 2
3
70 71