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 .

926 questions
6
votes
3 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
  • 8,744
  • 31
  • 107
  • 185
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
  • 5,555
  • 5
  • 24
  • 27
5
votes
1 answer

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

PowerShell "You must provide a value expression following the '/' operator" error when calling WinSCP.com

I have a piece of code that puts a file into an FTP server. Looks like this: "C:\Program Files (x86)\WinSCP\WinSCP.com" /command "open user@myFTPServer:MyPort/MyPath/ -privatekey=myprivatekey.ppk" "put myfile.txt" "exit" This runs fine in the…
Victor
  • 856
  • 1
  • 20
  • 38
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,191
  • 1
  • 19
  • 41
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
  • 4,272
  • 9
  • 49
  • 107
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
5 answers

Cannot initialize SFTP protocol. Is the host running a SFTP server? WinSCP error

When I try to SSH into my cluster, there are two stages. So I have to enter the password twice to go to my home directory using SSH in a Linux terminal or PuTTY. But when I try to use WinSCP, I get these errors: Trying SFTP: Cannot initialize SFTP…
gk1
  • 161
  • 1
  • 1
  • 2
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
  • 2
  • 10
5
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
  • 139
  • 2
  • 11
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,054
  • 4
  • 17
  • 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,196
  • 5
  • 29
  • 60
5
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
  • 4,746
  • 18
  • 56
  • 99
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
1 2
3
61 62