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

How to fix WinSCP error 'System.Xml.XmlException: Root element is missing' on SFTP Port

I'm getting the following error on our BizTalk 2016 instance with a SFTP receive port when it polls to connect to a SFTP site: The Messaging Engine failed to add a receive location "OURPORTNAME" with URL…
Andy Midd
  • 79
  • 9
-1
votes
2 answers

How to trim a log file using grep command

For example: If below is the content of my log file, I want to keep only the contents between the first occurrence of value '2018' and last occurrence of…
Shawn
  • 4,064
  • 2
  • 11
  • 23
-1
votes
1 answer

move multiple local folder and their content to remote server through sftp protocol with powershell

I want to move specific files from a local directory to a folder of a remote server. The files are generated in folders inside the main directory. The names of the folders are the actual dates and inside them there are files. In some cases the names…
wolfnlight
  • 23
  • 1
  • 4
-1
votes
3 answers

How do I select a custom port to connect to when using PuTTY through WinSCP

WinSCP offers a great option to connect via PuTTY with one button. The only problem, is there is no way to set the port which PuTTY connects to. So if my server uses a custom port (1024), I have to load PuTTY manually and do this connection. I know…
Mich
  • 3,188
  • 4
  • 37
  • 85
-1
votes
1 answer

WinSCP .net assembly not honoring include file mask

I'm using WinSCP .net assembly to download some files off of a ftp server. I want to restrict the download to Only the top level directory, ie. no sub directories Only .csv files To accomplish this I'm using the include/exclude file masks…
reggaemahn
  • 6,272
  • 6
  • 34
  • 59
-1
votes
1 answer

AWS EC2 SFTP server permission denied

I have configured a new user with password and then tried to connect to is over SFTP using WinSCP but it says permission denied. I am using Ubuntu 16.04. Can someone help?
-1
votes
2 answers

Command to upload a file with WinSCP by FTP?

I have an FTP server, but don't know the command to upload from a PHP form. I need a command to upload with WinSCP. My code so far is…
-1
votes
1 answer

Directory for Subdomain on Route53

I've successfully created a subdomain on Route53 that is connected with EC2 Instances. When I access my subdomain subdomain.domain.com there appears Amazon Linux AMI Test page. How to upload my website to subdomain.domain.com? If usually add files…
-1
votes
1 answer

Running Unix shell script with batch file to download files from WinSCP

I am trying to download a file from WinSCP through batch file. I am able to download the file if I enter the file name in the batch file. But I need to enter the file name dynamically (i.e., file name has to be entered at run time). Here is my…
ramu246
  • 51
  • 1
  • 8
-1
votes
2 answers

Error on Session.Open in Winscp - VBA

Hi I am trying to upload the file in WinSCP via VBA. the mySession.Open mySessionOptions got Error - Network error connection to "103.231.8.66" time out. i googled but didn't get idea. any suggestion would appreciated Sub test() Dim wbs As…
Ashok
  • 284
  • 2
  • 5
  • 23
-1
votes
1 answer

WinSCP transferring PDF from unix to window

I am working on a project using Java that embedding PDF with text file. So far, I developed and tested on development tool Eclipse, the program run perfectly smooth and the result were as expected. I try to run the program on unix, program was run,…
Learner
  • 33
  • 1
  • 4
-1
votes
1 answer

Hebrew file names as ???.txt

on Linux I see Hebrew file names as ???.txt using putty . on WinScp it looks fine. is it a putty issue or Linux (shell) issue ? when I run locale I'm getting in the LANG : LANG=en_US.UTF-8
user7916020
  • 109
  • 6
  • 14
-1
votes
1 answer

Search latest folder than upload lastest file from that folder

I want to search the latest folder and than copy latest file from that folder. I know how to search for latest file in a folder but stuck with how to find latest folder in a folder. I am trying to transfer file to a FTP location using WinSCP script.…
-1
votes
1 answer

Open and edit code file from remote server in my preferred editor?

I am having a lot of trouble solving a SFTP problem... I would like to be able to open and edit text files in my preferred editor such that I can execute a command on my remote server and it will open the file in Visual Studio Code. Once that file…
Jeff Winkle
  • 181
  • 1
  • 5
-1
votes
1 answer

"java -cp abc.jar xyz.Main" command on console in WinSCP gives error

"java -cp abc.jar xyz.Main" command on console in WinSCP gives error "unable to fetch console" itself, tries for multiple times and exits with maximum attempts are done.
Sandeep Lohar
  • 39
  • 1
  • 3