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

C# save WinSCP stream to Azure Blob Storage Error: Offsets with value of non-zero are not supported

I am trying to save a file downloaded from an SFTP site using the WinSCP .NET library, and then save it Azure Blob storage. I don't want to use CloudBlobContainer as it is deprecated. I keep getting the error message: Offsets with value of…
laney
  • 57
  • 9
3
votes
1 answer

replace WinSCP with FileZilla - is this possible?

well i am a admirer of the superb WinSCP (see http://winscp.net ) FTP-client for many years. Several months i switched to Linux - now i run a OpenSuse 11.4. Question - can i replace WinSCP with FileZilla - is this possible Well i did not yet got…
dilbert
  • 33
  • 1
  • 5
3
votes
1 answer

VScode is displaying (deleted) in tab bar when opening file from winSCP

I have a problem opening my file from winSCP using Vscode editor. It display deleted even though the file is still existing. I notice that when there is deleted in filename my pc is creating temp folder when I save it and the deleted file will save…
3
votes
4 answers

How can I login to amazon ec2 with root directly in PuTTY or WinSCP?

How can I login to Amazon EC2 with root directly in PuTTY?? Each time I need to su - root first and change to root... Is there any other ways?? How can I login to Amazon EC2 with root directly in WinSCP or Filezilla?? Since I want to "push" the…
red23jordan
  • 2,841
  • 10
  • 41
  • 57
3
votes
1 answer

Using WinSCP .NET assembly on Linux

I have deployed my application based on WinSCP .NET assembly in Linux. I'm getting this error: WinSCP.SessionLocalException: The winscp.exe executable was not found at the location of the assembly WinSCPnet SessionOptions sessionOptions = new…
3
votes
2 answers

WinSCP AddRawSettings FSProtocol

When generating the C# code from the WinSCP GUI, I get sessionOptions.AddRawSettings("FSProtocol", "2"); Does anyone know what this FSProtocol setting and the value "2" means? I tried to google "FSProtocol" but fail to get any result specific to…
Aleen Shr
  • 39
  • 3
3
votes
1 answer

Only upload the latest folder to FTP (Local -> Remote)

I need to be able to upload a local folder (created daily) to a remote FTP everyday. I’ve messed with WinSCP file masks (i.e. put -filemask="*>=today" C:\local\ /) and ran into issues where it would upload the latest folder (contained subfiles) but…
kost82
  • 33
  • 3
3
votes
2 answers

Monitoring uploaded files on FTP server using WinSCP .NET assembly in PowerShell

I trying to write PowerShell script who can send a email when a new file his drop on a FTP (I'm not the owner of the FTP so I can't do a cron job). I got a error because I'm using the Contains method and after some research Contains doesn't work…
Ivanova
  • 55
  • 4
3
votes
1 answer

Downloading SFTP files through WinSCP on a Windows Service freezes

I'm trying to build a service that downloads some log files using SFTP and imports them to the database. Because Delphi doesn't come with SFTP components, I have created a BAT file to download the logs using WinSCP DownloadLogs.bat: WinSCP.com <…
Marc Guillot
  • 6,090
  • 1
  • 15
  • 42
3
votes
1 answer

Powershell7 WinSCP New-WinSCPSession Exception

I have an existing Powershell script which works without issue in PowerShell 5.1. After installing PowerShell 7, the script no longer works and it fails when trying to establish a WinSCP session. First, session options are created via…
Mike
  • 1,010
  • 1
  • 14
  • 33
3
votes
1 answer

WinSCP upload file to remote SFTP error: "Cannot create remote file – Permission denied"

We were doing some manual process to download from and upload to a remote SFTP server with FileZilla. With the client software we didn't have any permission issues. Recently we decided to move it to a scheduled function using VB.NET. The downloading…
Cal
  • 747
  • 1
  • 13
  • 30
3
votes
1 answer

Connection to remote server via file client

I have little problem. I am using Putty for connection to remote server. ssh xxx.xx.xxx.xxx After connection and login with password, I need to use command: ssh username@servername After this, I can use remove server via Putty, its work fine.…
Rosta6
  • 161
  • 1
  • 4
  • 10
3
votes
1 answer

Overwrite log file using WinSCP command line arguments

I am using Execute process task in SSIS to execute below command line arguments to download the files to some local drive. /log=G:\USER_DATA\IRM\IRM_SFTP_Logs\IRM_SFTP_Log_Details.txt /command "open…
vikrant rana
  • 4,509
  • 6
  • 32
  • 72
3
votes
1 answer

What exception types can be thrown in processing by WinSCP .NET assembly

I found WinSCP as a great solution for integrating SFTP download with an existing process. However, I have not been able to locate the types of errors that can be thrown by the .NET wrapper. I like to have granular error processing where I can but…
3
votes
1 answer

Need to pass SSIS variable to the Execute Process task to make Dynamic command line argument for Winscp

I have a folder 'DATA' at SFTP location from where I need to download the set of files to some common location and then copy the respective files to different folder location. File Names are: Test1.csv Test2.csv Test3.csv Test4.csv Test5.csv I…
vikrant rana
  • 4,509
  • 6
  • 32
  • 72