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
11
votes
5 answers

Get permission to work with files on my Amazon EC2 Ubuntu server using FTP-WinSCP

I have an Ubuntu server on Amazon, I installed everything for working with it (php, mysql, phpmyadmin, apache..), The problem is that I cant move around or edit files using the FTP. I get the error message: Permission denied. Error code: 3 Error…
Imnotapotato
  • 5,308
  • 13
  • 80
  • 147
10
votes
5 answers

How to change file permission for all sub-directories (CHMOD)

I've a directory, inside which I've multiple directories each containing several image files. I want to change the file permissions to 755 for all the sub-directories and the image files inside them. I'm using WinSCP to connect to the server. So how…
ptamzz
  • 9,235
  • 31
  • 91
  • 147
10
votes
1 answer

PowerShell 7.3.0 breaking command invocation

I use WinSCP within a Powershell script. It suddenly stopped working. After a while I could figure out that the problem appeared from a more recent version of PowerShell: Reduced code: & winscp ` /log ` /command ` 'echo…
JFFIGK
  • 632
  • 1
  • 7
  • 24
9
votes
5 answers

BAT script to copy files from Windows to remote Linux systems

Is there anyway to copy files from Windows machine to a remote Linux machine with a DOS command/other command-line tool (by specifying username and password in the command). I normally do this using WinSCP and would like to write a script (BAT) to…
softwarematter
  • 28,015
  • 64
  • 169
  • 263
9
votes
1 answer

Download files from SFTP server using PowerShell

I need to download files from SFTP server to a local machine using a PowerShell script. The API/library that will be used for the download needs to be able to monitor results of the transfer, log the transfer, and also to archive/move the downloaded…
Ratnesh Sharma
  • 145
  • 2
  • 2
  • 11
9
votes
3 answers

Winscp with SSIS package gives System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)

Installed WinSCP .net using nuget installer. Visual Studio 2013 SSIS BIDS 2012 Project references are correct - pointing to DLL that was installed Project contains one script which is a stripped down version of the sample code from the winscp site. …
Shaun Neal
  • 1,183
  • 1
  • 10
  • 12
9
votes
3 answers

WinSCP connect to Ubuntu. Access Denied

I installed Ubuntu13_desktop in VMware(VMware® Workstation 7.1.6) based with Windows 7. Now I want to connect to Ubuntu from Windows 7. Set the WMware as Host-only. Installed WinSCP in Windows, configured protocol: SFTP; Host name: ubuntu; Port:…
CLoren
  • 298
  • 2
  • 5
  • 10
8
votes
2 answers

Connecting to SFTP via SSIS

I'm trying to connect to a SFTP server via an SSIS package. The package executes WinSCP with the following connection string in a .txt file: open sftp://username:fc$#6444@example.com:22 However the package keeps failing without being able to…
may-z
  • 127
  • 1
  • 1
  • 6
8
votes
1 answer

WinSCP: Text search on remote files

I use WinSCP to get access on the remote files of our project. How can I search for some text/words in all remote files/directories using WinSCP?
Max_Salah
  • 2,407
  • 11
  • 39
  • 68
8
votes
1 answer

WinSCP .NET assembly: Where to define proxy?

I am able to define the proxy server by using the WinSCP GUI. If I do this I am able to connect to a remote host. But in code I don't find a way to declare the proxy server for WinSCP. In this case I receive Remote server returned an error (407)…
deyaert
  • 101
  • 1
  • 3
7
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
  • 1,163
  • 4
  • 25
  • 45
7
votes
1 answer

set times: Operation not permitted

In WinSCP, If you have opened a file from the server on your local and on making changes and pressing (Ctrl + S), basically saving it, you get an error saying: /path of the file/ set times: Operation not permitted And whenever you are saving the…
Bhanu Pratap Singh
  • 1,017
  • 1
  • 12
  • 15
7
votes
6 answers

Ansible development environment

Currently I'm developing ansible orchestration system. The project structure is something like this: site.yml webservers.yml fooservers.yml roles/ common/ files/ templates/ tasks/ handlers/ …
Na Na
  • 818
  • 3
  • 13
  • 19
7
votes
7 answers

"Cannot initialize SFTP protocol. Is the host running a SFTP server?" WinSCP error when the server requires "two passwords"

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

How to copy symbolic link file from Linux to Windows and then back to Linux but still keeping it as a symbolic link

I have a symbolic link in my Linux machine. I want to copy just the symbolic link (not the target) to a Windows machine and then copy this symbolic link from Windows machine back to some other Linux machine and symbolic link should continue to…
Bhuvan
  • 4,028
  • 6
  • 42
  • 84
1
2
3
70 71