Questions tagged [winscp]

1

votes
1

answer
32

Views

Skip duplicate lines when downloading text file from SFTP server with WinSCP

Is there a command for a WinSCP batch file to only append non duplicate values in the remote file to the local file? This is my batch command: @echo off 'C:\Program Files (x86)\WinSCP\WinSCP.com' ^ /log='C:\Users\U37615\Documents\POCLOSEBATCHLOG\WinSCP.log' /ini=nul ^ /command ^ 'open xxxxxx -hostke...
Joshua Averbuch
1

votes
1

answer
65

Views

What is meaning of \\Server1\Folder1\Folder2\File.txt in WinSCP FTP script?

I have a put command which is working in SFTP for one file. Below, I have code using FTP and I need to convert it to SFTP: echo put \\Server1\Folder1\Folder2\File1.txt /Folder1/Folder2/sympdayedw_%datestr%%timestr%.txt >> \\Server1\Folder1\Folder2\File.txt Can anybody explain to me what the meanin...
Nalo Nenu
1

votes
1

answer
131

Views

Where to store SSH private key file in application

I am using WinSCP .NET assembly to upload files over SFTP, and one of the SessionOptions properties is SshPrivateKeyPath which is the location of the private key file that I created with PuTTYgen. The file is on the C: drive on my PC: SessionOptions sessionOptions = new SessionOptions { SshPrivateKe...
markpsmith
1

votes
0

answer
136

Views

Connect to SFTP using Winscp from SSI without using host key

I am using SSIS 2016 to do some SFTPtasks using WinSCP.I am getting the error 'Process exit code was 0 while expecting 1'.Here is my WinSCP script option batch abort option confirm off open sftp://user:[email protected]:22 close exit. If I run this connection only in WINSCP.com it gives the below err...
Al Jam
1

votes
0

answer
218

Views

rutorrent Powershell Automation

I connect to a remote seedbox daily to upload torrents and download files. I'm able to use Winscp to download and upload torrent files to the watch folder, but I would like to be able to automate zipping (archiving) up the completed files, delete move and pause downloads, and upload magnet uri direc...
powershellcrack
1

votes
1

answer
326

Views

WinSCP NuGet package .NET Standard error

I am trying to build a .NET Standard 2.0 Class Library that uses the WinSCP NuGet package. However, when I install the package even though it adds it as a dependency I get the error: The type or namespace name 'WinSCP' could not be found (are you missing a using directive or an assembly reference?)...
martinc
1

votes
1

answer
257

Views

What is the correct syntax for WinSCP Session.ScanFingerprint()?

I need to use the WinSCP API to programmatically retrieve fingerprints from remote protocol devices on our network. Right now this is done tediously by opening a Windows UI WinSCP session and transcribing the fingerprints from the popup window displayed when a fingerprint is about to be cached. I s...
user3235770
1

votes
1

answer
69

Views

How can I create an acceptable private key file for WinSCP assembly to authenticate with?

I'm trying to use the WinSCP assembly to upload to our FTP server. We have a common private key stored in our DB that we retrieve and use for authentication (this is currently working for our Java upload usith JSch). However WinSCP needs a file path name. I'm trying to write our private key to a fil...
1

votes
0

answer
20

Views

WinSCP + Wine + MacOSX open MacOS editor possible?

WinSCP is the best SSH client I've found. I can use it in MacOS through Wine to edit and code in remote files. However, I haven't been able to edit files opened in WinSCP with an external MacOS editor app (I have to install a windows editor throught Wine, and that works). Is this possible? How can I...
arod
1

votes
1

answer
299

Views

“Expected host key was not configured, use -hostkey switch” when using WinSCP to SFTP

I have requirement of uploading the .csv file to SFTP. I have got a .ppk file My WinSCP script: open sftp://[email protected]/ -privatekey=ssh.ppk lcd Z:\TR TEM DATA\ cd /home/cli/mm/gns ascii put -transfer=ascii -latest *.csv exit Error: Searching for host... Connecting to host... Authenticating... Expect...
MSM
1

votes
1

answer
48

Views

WinSCP, .NET library, checksum support

I'm using the WinSCP .NET library. Occasionally, the session.CalculateFileChecksum() call will throw an exception when a server does not support the checksum functionality. I'd like to avoid this by first checking whether or not the FTP server supports the call. I'm wondering if there is a way to d...
xgp
1

votes
1

answer
32

Views

How do we compare two files at two different location.One location is in winscp and another location is in git

i need to write a script to compare two files at two different location.One location is in winscp and another location is in git.say at location A is in winscp and it has 1000 files and location B is in git and it have some 1500 files.Now i need to write a script to check what all files are in commo...
Rakesh
1

votes
0

answer
42

Views

How to get a Laravel (v5.6.29) project (app) onto the the platform WebFaction (web hosting server)

The project is an app that is coded in PHP, HTML, CSS3, Javascript, JQuery, Laravel ORM. I am currently able to run on a platform called XAMMP on my localhost. Currently, I am trying to deploy the app on a web hosting server by the name of 'WebFaction'; however, there seems to be a framework error w...
Carlos Santana
1

votes
0

answer
65

Views

Submitting JCL through filezilla or winScp

I used submit JCL with FTP(example below). Is there any way to do something like this with FileZilla or winScp? FTP example: ftp open servername user password quote site filetype=jes mdel *.* put c:\jcl.txt ls disconnect quit
ijsbees
1

votes
2

answer
78

Views

Close used WinSCP session when exiting application (while in use)

I have an application that runs a background thread that opens a WinSCP session which is used to do stuff, like this: new Thread(() => { //do stuff SessionOptions options = new SessionOptions { //options }; using(Session session = new Session()) { bool success = false; foreach (var ip in IPs) { opti...
Angelo
1

votes
1

answer
124

Views

Powershell script to auto delete, download and restore SQL database not executing fully

With the help from some online resources I've compiled a PowerShell script that will: Delete any file older than 60 minutes in a set folder Connect to an SFTP server and download a single .bak file Restore the downloaded .bak file to a SQL instance The code works fine if I break it out and run it in...
Christian
2

votes
1

answer
62

Views

WinSCP How to check for directory existence before creating it on FTP server?

Trying to automate via Jenkins: Transfer files from Local Windows directory to FTP directory via WinSCP console scripting. Problem statement: Need to check whether a folder exists on FTP server before initiating upload. This is the code I'm trying to execute via winscp /script=abc.txt abc.txt as fo...
Namrata Shilpi
1

votes
0

answer
71

Views

BizTalk 2016 sFTP WinSCP - No more messages can be received

Our BizTalk 2016 environment consists of 2 application server running in a group with CU5 and FP3. We have 24 applications deployed. Across this applications we have 27 receive locations with the new sFTP WinSCP adapter configured. For all sFTP receive applications we have the 'Connection Limit' co...
Devx2017
1

votes
2

answer
42

Views

“Unable to find type [WinSCP.RemotePath]” when using WinSCP .NET assembly from PowerShell

I'm trying to download the last modified file using WinSCP .NET assembly as a part of an ETL procedure. I'm stuck since I have very little to no knowledge of Powershell scripting. This is what I've tried so far in Windows 10 PowerShell: param ( $localPath = 'C:\download\*', $remotePath = '/home/fold...
MrPmosh
1

votes
1

answer
105

Views

Put own iPhone .app's on iPhone

I made app1 and transfered it to my iPhone using WinSCP to ssh into my iPhone. It shows up in my iPhone and runs. Then I made app2 and transfered it to my iPhone. Shows up and runs aswell.. My problem? I only seem to be able to have 1 of them show at the same time. I can either have app1 or app2, bu...
user1021085
1

votes
2

answer
15.3k

Views

Batch file when using WinSCP and command prompt

I am currently writing a script that calls WinSCP, connects an SFTP session, transfers a group of files from a local server to a remote server, closes the connection, then moves the local file to an archive. An alternate acceptable solution would be to copy the file to archive and then delete it fro...
Androgyny Rocks
1

votes
1

answer
862

Views

File lock issues - Syncing through SCP client

I'm trying to access files from an iPad. It supposes to plot some live data. However the data (file) that is being generated by the java program doesn't let the SCP client to sync the file to the server. It can access only on stopping the java program so that it can let go off the file that it write...
Siddharthan
1

votes
1

answer
146

Views

Username:Password vs sftp.site.com

I'm having issues with using the following format using WinSCP open sftp://user:[email protected] vs. this, which works with the console and GUI: open sftp.site.com. I would like to automate logging in through the command line but when I try with sftp://user:[email protected] I get a timeout. Any i...
dirtyw0lf
1

votes
1

answer
6.7k

Views

WinSCP login issue with sudo

I am trying to login using WinSCP using correct username and password. Under Environment> SFTP > SFTP Server I have specified sudo /usr/lib/openssh/sftp-server Under Session I type in the Host name, User name and Password. When I click on Login I get Connection has been unexpectedly closed. Server s...
user1544778
1

votes
2

answer
2.4k

Views

WinSCP: Current SFTP-3 session does not support command you request. Separate shell session may be opened to process the command

I'm using WinSCP to interact with a remote server that supports only SFTP and doesn't allow SSH access. My interaction involves moving/deleting a subset of files (identified by file names) in a certain directory. To simplify this, I would typically synchronize [ Remote -> Local ], delete the files l...
nemo
1

votes
2

answer
335

Views

Uploading via SFTP over slow connection to temporary location then moving to real location

I have an issue where occasionally I need to work at Starbucks. When I upload a PHP file the connection is slow so if a user tries to access the PHP file while I am uploading it they will of course be issues a fatal error. This is very inconvenient to my busy websites. Is there a way that when a fil...
arosolino
1

votes
1

answer
179

Views

Trying to upload HTML file that is changed locally, apache only shows the last version

I am debugging code of a large-scale web application which resides on Debian and Apache. Even though I don't have any trouble changing and uploading .php files, when it comes to a particular html file, it doesn't matter how many times I upload it, the web server keeps serving the same version of htm...
millenseed
1

votes
1

answer
155

Views

Is it possible to use SCP protocol to download files without opening port 21?

Is there any way to download files using SCP without opening port 21 or any other port.I dont have much idea about SCP. If I can get some guidance on any way of doenloading files without opening ports.Please share.
CoolDiva
1

votes
1

answer
316

Views

How to automatically open files when double clicking with dart editor?

I'm using winscp to upload files and when i double click a .dart file on my server, darteditor opens but it doesn't actually open the file. how can i do this?
Steve
1

votes
1

answer
461

Views

WinSCP/CuteFTP - Download files owned by another user

I have a 'sudo user' account created on my server. When using PuTTY, sudo 'operation' allows me to do any operation without any problems; However I have a 37M file I need to check and I need to download it to my local machine; the problem is that WinSCP/CuteFTP is unable to download a file owned by...
Ihab
1

votes
1

answer
3.3k

Views

zip error: Could not create output file <was replacing the original zip file>

I have a Task Scheduler that runs WinSCP.exe that takes the zip file from the Desktop and sends it to Linux box. I get following error if I try to replace the old zip file with a new one, since I want the data to be updated daily. >pushd C:\Users\Desktop\ct >zip -9 -m -r XML.zip zipfolder\*.xml...
Angelina
1

votes
1

answer
255

Views

XML request and response SSH

Please forgive me if this is too broad of a question. I am trying to understand this assignment I was given. I am supposed to choose a SSH client that would have a service that would request another service for XML data. In response, this other service would respond with XML. I chose WinSCP because...
Liondancer
1

votes
2

answer
4k

Views

Automated Delete on SFTP Server (Putty? WinSCP?)

I'm searching for a solution to easily delete files on a SFTP Server automatically after a specific period of days. I read something about automation via PSFTP from Putty and WinSCP. But there are no examples for deleting files...
Fabian
1

votes
1

answer
3.4k

Views

WinSCP script stops after trasferring the first file

I have a question regarding copying multiple files from one directory to another remote directory in SSIS. I'm using WinSCP, below is my script file. option batch on option confirm off open username:[email protected] -timeout=1000 -hostkey='ssh-rsa 39439:xx:xx:xx:xx:xx' option transfer binary put c...
user2992714
1

votes
1

answer
212

Views

Can I suppress the MLSD with WinSCP .NET assembly?

I'm using WinSCP .NET assembly. When I call the Session.PutFiles method, it sends the following series of commands: TYPE A PASV MLSD TYPE A PASV STOR myfile Is there a way to tell it NOT to send the MLSD? (MLSD requests the contents of the remote directory be sent back.) At the very least, I don't n...
Jay
1

votes
1

answer
3.1k

Views

how to transfer file using winscp console from remote windows 8 server to linux server

I am currently connected to a windows server. I installed winscp on it. I run the winscp and connect to a linux server. Now on the gui of the winscp, i clicked the console, and use the scp command. the file on the remote server is C:\xampp\htdocs\android\files\file.txt now i want to transfer it to m...
Vincent
1

votes
1

answer
2.1k

Views

How to convert Windows FTP script to WinSCP?

I need to use WinSCP in my legacy vb6 code. I always used my script like this: open ftp.myserver.com myusername mypassword passive on cd myfolder\ ascii put C:\temp\test.xml test.xml close quit Similar script (with little change) always worked for sslftp, psftp, etc. Now I need to create script...
gangt
1

votes
2

answer
3.1k

Views

System cannot find the file specified when I try to call an executable file in C#

I'm running a C# script in SSIS. In that script, I'm trying to call winSCP.com which is located in the following directory: 'C:\Program Files (86)\WinSCP\' But when I try to run the code, it always fails immediately. Here is my code. what am I doing wrong? // Run hidden WinSCP process Process winsc...
Hotelsinger
1

votes
2

answer
695

Views

How to download from double hop SFTP?

I am new to linux and am having trouble doing this. I need to download files and this is currently what I do to access the file. SSH into server A. From server A, SSH to server B After logging into server B, run the following command: sudo -i -u testuser I enter a password and then I have the pri...
john cs
1

votes
1

answer
2k

Views

Make WinSCP Better than NotePad++ Plugin FTP_Synchronize

Notepad++ FTP_Sync plugin works in this way: It creates a cache directory (let's say cacheDir) and saves each FTP file like this: cacheDir - [email protected] -- root --- public_html ---- any_directory ----- any_file.* - [email protected] -- root --- public_html ---- any_directory ----...
Wasim A.

View additional questions