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

Use path with spaces in batch file using WinSCP

I have created WinSCP batch file for deleting files on remote server. It's working fine, but it's not working with folder with spaces. For example, the below batch file is working: cd C:\Program Files\WinSCP winscp.com /command ^ "open…
5
votes
1 answer

How to upload a file to Azure Storage with WinSCP (SFTP)?

theI have a C# service using WinSCP which reliably uploads files to any SFTP server. I'd like to use it to connect to MS Azure Storage and upload files there using the same SFTP protocol. Please note I am not looking to use any other protocol (i.e.:…
Milan
  • 3,209
  • 1
  • 35
  • 46
5
votes
2 answers

WinSCP .NET assembly: How to download directories

I wrote a application in C# that uses System.IO.GetDirectoires() and System.IO.GetFiles() I now have to convert that to use SFTP. I have experience with PutFiles and GetFiles of WinSCP .NET assembly, but I cannot figure out how to get a list of…
user3753693
  • 225
  • 1
  • 5
  • 13
5
votes
3 answers

WinSCP SFTP connection error

While accessing my remote server, from SFTP, I am constantly getting this error Connection has been unexpectedly closed. Server sent command exit status 0 I have filled same credentials in WinSCP, it is working fine. Where am I lacking? Also,…
Pranay Deep
  • 1,371
  • 4
  • 24
  • 44
5
votes
1 answer

Access remote file contents as a stream using WinSCP .NET assembly

I am trying to open file to read from SFTP using WinSCP .NET assembly as par to my exercise to archive file from SFTP to Azure blob. To upload a blob to Azure, I am using using (var fileStream = inputStream) { …
Mukil Deepthi
  • 6,072
  • 13
  • 71
  • 156
5
votes
4 answers

How To Run a Script in WinSCP

I am using winSCP GUI to connect to linux terminal and then copy the files and other stuff. Now i have some scripts on the UNIX server,I am connected but how to run the script from the Win SCP. what basically is needed is sh scriptname.sh through…
user3930361
  • 181
  • 1
  • 1
  • 9
5
votes
1 answer

WinSCP .NET assembly throwing "The winscp.exe executable was not found at location of the assembly" when installed to GAC for SSIS

I have a package which downloads files from FTP using WinSCP which runs perfectly when I execute it locally. But we are facing issues when we run from the deployed version from SSIS DB Catalog. GAC registration already done for the .dll file. Below…
Prakazz
  • 421
  • 1
  • 8
  • 21
5
votes
1 answer

How to upload files to home using WinSCP .NET assembly?

I want to upload files to home (root) directory of the server, not into a folder. How can I do it? (using C#) transferResult = session.PutFiles(path, "\\", true, transferOptions); If I use \\ for remotePath, uploaded file was renamed.
Suravi
  • 301
  • 1
  • 7
  • 21
5
votes
2 answers

Opening Sublime Text editor from PuTTY terminal

I'm implementing a program on my Linux virtual server. For that I use WinSCP and PuTTY. Should I install my text editor (Sublime Text) on my laptop or on my virtual server and how do I open it from PuTTY?
user3299453
  • 91
  • 1
  • 2
  • 11
5
votes
3 answers

The server rejected SFTP connection, but it listens for FTP connections

When I use WinSCP in Windows to connect to VMware with Ubuntu, it prompted this: The server rejected SFTP connection, but it listens for FTP connections. Did you want to use FTP protocol instead of SFTP? Prefer using encryption. What's the…
CLoren
  • 298
  • 2
  • 5
  • 10
5
votes
1 answer

Error downloading file to local subfolder using WinSCP

I use a batch file to get into WinSCP. The .bat reads a script file containing this: cd /download/.stuff get file.txt D:\Name\Sub Name\Even Lower changes directory fine, finds file fine, but when it comes to placing it in Sub-folder directory on…
Rhodo
  • 1,234
  • 4
  • 19
  • 35
5
votes
2 answers

"No supported authentication methods available" while connecting to SFTP using WinSCP in C#

I'm trying to connect to a SFTP server using WinSCP in C#. This is my code: SessionOptions sessionOptions = new SessionOptions { Protocol = Protocol.Sftp, HostName = "ip", PortNumber = portNR, UserName = "username", Password =…
Lahib
  • 1,305
  • 5
  • 34
  • 62
4
votes
4 answers

Looping in Bash: syntax error: unexpected end of file

Im new to to this Bash/Shell stuff and got to do some network analysis for a uni assignment. Just trying to do a simple loop but getting a weird error that have been unable to fix despite a 2 hour google crawl: #!/bin/bash x=1 while [ $x -le 5 ] do …
Lewis Wheeler
  • 220
  • 6
  • 17
4
votes
1 answer

How to rename a downloaded file from within the WinSCP script?

I have WinSCP script that downloads a file from the SFTP server to the local machine. How can I rename the file from within the WinSCP script? The script is being run from Windows machine. The WinSCP script: option batch off option confirm off…
Teja Goud Kandula
  • 1,462
  • 13
  • 26
4
votes
1 answer

Importing proxy configuration from WinSCP to IntelliJ

I would like to use IntelliJ to configure my SFTP servers. Unfortunately, I have very complex configurations (SSH tunnels, proxy etc...) that I am currently doing with WinSCP. Is it possible to import the exported WinSCP configurations into…
Lore
  • 1,286
  • 1
  • 22
  • 57