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
3
votes
1 answer

Recovering deleted files from WinSCP

I accidentally deleted some logs files from my server from root user in WinSCP. In preference options, there was a checkbox option that was checked for "Moving files to recycling bin". I can't find the recycling bin anywhere, I really need the logs…
zana
  • 259
  • 2
  • 4
  • 15
3
votes
2 answers

Download file chunks with offset from SFTP server using WinSCP .NET assembly

We currently are using WinSCP .NET assembly to interact with SFTP servers. Our use case involves fetching parts of a file in chunks. I see that TransferResumeSupportState transfer option can be used to resume the file download but does not give…
Varun Gore
  • 31
  • 4
3
votes
1 answer

Working Private Key Pair Stopped Working

After several days of working on a Flask webapp when I tried using Putty and WinSCP to connect to my server I got the following error message: Disconnected: No supported authentication methods available (server sent: public key). I then launched a…
ashap
  • 101
  • 1
  • 11
3
votes
2 answers

WinSCP error "No such file" when uploading files to server

Currently I'm programmatically trying to upload files to a server using the WinSCP API. However looking at the log files every time I attempt to do this I get an error stating that the remote file or it's directory doesn't exist. Code: Dim objftp As…
Andrew Ferguson
  • 179
  • 1
  • 3
  • 15
3
votes
4 answers

Opening session in PuTTY from WinSCP stops at "Login as" prompt instead of using credentials from WinSCP

I'm facing strange issue with WinSCP: It works well and I'm able to connect to remote hosts. But when I try to use the "Open session in PuTTY", instead of logging me directly with same credentials, PuTTY gets "stuck", prompting me to "login…
Vincent F
  • 6,523
  • 7
  • 37
  • 79
3
votes
2 answers

Run JAR file at specific times daily with WinSCP

I am encountering a problem that I think there is a simple solution for. I'm currently using WinSCP (set up for FTP) with a Linux server for hosting a web application. I've created a JAR file (filename.jar) that I can run manually in the WinSCP…
JamesR
  • 67
  • 2
  • 8
3
votes
1 answer

Transfer of large number of files using SFTP is slow in C#

I am uploading 4000 zip files of size 85 KB of each using over Linux Server using SFTP in C# WPF application. This whole process takes 30 minutes. Is there any way to speed up the uploading using SFTP? I'm using WinSCP .NET…
dhiraj
  • 73
  • 2
  • 14
3
votes
1 answer

WinSCP - Do not synchronize subdirectories

I am writing winscp script in VBA to synchronize certain files from remote to local. The code I am using is ""synchronize -filemask=""""*.xlsx"""" local C:\Users\xx\Desktop /JrnlDetailSFTPDirect"" There are three xlsx files: 14.xlsx, 12.xlsx,…
NewGuyComesIn
  • 189
  • 1
  • 2
  • 14
3
votes
1 answer

Sass watch command compiles .scss files before full sftp upload

I use WinSCP to download and edit .scss files and sass on Linux (on the server) to compile them to .css. After saving the file, I use: sass scss/style.scss css/style.css, which successfully replaces the css file with the compiled sccs. The problem I…
gmanousaridis
  • 371
  • 5
  • 16
3
votes
1 answer

Does WinSCP .NET assembly support implicit TLS/SSL with client certificate authentication for FTPS?

Windows WinSCP application version 5.8.1 beta seems to support TLS/SSL client certificate authentication with implicit TLS/SSL for FTP. I wonder if WinSCP .NET assembly (dll version of WinSCP) supports this type of authentication?
Ahmet Arslan
  • 5,380
  • 2
  • 33
  • 35
3
votes
5 answers

How to remove "." and ".." files from remote directory with C# and WinSCP

I'm trying to get the files count from a remote directory using a SFTP connection, but I'm getting . and .. and these are counted these dots like a files, I have 2 files in the remote directory but is counting 4 files including . and ... Someone can…
Javier Salas
  • 1,064
  • 5
  • 15
  • 38
3
votes
1 answer

How to get key fingerprint for SFTP from private key?

As I am working on a .NET C# project which uses WinSCP .NET assembly, for SFTP password less connection. By far I have made an UI where we have to provide SSH key fingerprint, paraphrase, and path of .ppk file. My question is that, is there any way…
Pranay Deep
  • 1,371
  • 4
  • 24
  • 44
3
votes
2 answers

Using the WinSCP NuGet Package (and git), can I add WinSCP.exe to my git ignore?

C# / Visual Studio: Part of the installation of the WinSCP NuGet package includes adding WinSCP.exe to my project root. (While I'm not entirely happy with that location in my project, that's not my question). If I don't need to, I'd rather not have…
jack
  • 303
  • 3
  • 12
3
votes
2 answers

WinSCP script not executing in batch file

I have a script that is executing perfectly on command prompt. If I copy and paste the script directly to the command window then it is working fine, but when save it like Windows batch file and run it it is hanging. option batch abort cd \program…
Moreau S.
  • 33
  • 1
  • 3
3
votes
1 answer

Unrequested debugging Info in Powershell console

I'm having a nuisance issue I'd like to eliminate where I get debugging info I am not asking for in a Powershell console and ISE. It's a nuisance in that it gets in the way of my desired debugging info. I'm not clear if this is specific to the tool…
dave_the_dev
  • 1,555
  • 3
  • 15
  • 27