Questions tagged [pscp]

PuTTY Secure Copy client (pscp) is a command-line SCP client for transferring files securely between computers using an SSH connection.

PSCP documentation: https://the.earth.li/~sgtatham/putty/latest/htmldoc/Chapter5.html

120 questions
2
votes
1 answer

Can pscp transfer to a temporary file and rename once done?

I have a very big file that has to be transferred to a remote server. On that remote server there is a job activating each 5 min that, once sees a file name starting with the right prefix, processes it. What happens if the job "wakes up" in the…
Phate
  • 6,066
  • 15
  • 73
  • 138
2
votes
1 answer

"ignoring potentially dangerous server-supplied filename" in pscp

I want to copy some file from a remote Linux system to my Windows PC using pscp (from PuTTY). I wrote a small script that should copy all .png files in a directory on my server: pscp -unsafe…
Riley Eaton
  • 137
  • 12
2
votes
1 answer

How to copy a file created in a python script to a remote server which needs password, using pscp?

I need to copy many files created in a python script from local to a remote server. On the command prompt I use this line : "pscp c:\users\myaccount\documents\foler\file.txt name@server:/home/folder". But this requires a password that I can enter…
2
votes
0 answers

Pscp (putty) sometimes hangs during repeated ssh handshake

I have a Problem with the putty tool pscp. I check if Linux VM (Red Hat Enterprise Linux Server 7.4) "TARGET" is alive and store a timestamp on the TARGET in a file. I do this all 10s from a Windows VM (windows server 2016) "SOURCE". The process is…
Severin
  • 53
  • 5
2
votes
1 answer

pscp network error: connection timed out

NOTE I am running on windows 10, not linux. pscp.exe has been downloaded and run in my \Users\Taylor folder. I turned off my firewall just in case that could be interfering. I am trying to download files to my local windows from a remote linux…
Taylor Adams
  • 21
  • 1
  • 3
2
votes
0 answers

How to add connect timeout for putty sftp command

Currently I am working in Excel vba. I dont know much about it. I am doing file transfer operation using putty sftp command, I am using below code for the same. I have also installed winscp & putty on my pc. My code is: Dim shell As Object Dim…
RPrashant
  • 217
  • 3
  • 13
2
votes
1 answer

How to download last modified file from remote server to local using PuTTY batch file

I have a query regarding the putty batch file. This is my .bat file: C: cd Program Files (x86)\PuTTY pscp -2 -v -pw khair1 -sftp abc@****.na.ab.com:/qwe/asd/tryu/*.csv.zip P:\Projects\abc\Test_bacth\Batch_download pause" So every week I have to…
Ashique Sheikh
  • 155
  • 2
  • 4
  • 13
2
votes
1 answer

-bash: pscp: command not found

pscp cis249.hacc.edu ./dgf1928_archive_backup.tar c:\users\mrmet_000\desktop\Cis249.hacc.edu archive backup The above syntax does nothing because pscp will not work on my windows 8.1 system for some reason. Does anyone have any clue what I must do…
2
votes
1 answer

putty from a batch file and a script?

I have a batch file that opens putty just fine. c:\putty.exe root@192.168.12.34 -pw boyhowdy. But to make this work for me I need to understand how to include a script of a command so it will run under the putty tool. Like mount –o remount,rw / . Or…
user3314404
  • 79
  • 1
  • 2
  • 10
2
votes
0 answers

asp.net app unable to run pscp on IIS while working in VS

I have functionality in an ASP.NET application that runs a cmd process that uses PSCP.EXE (Putty) to copy a file from an external Linux server to the local server. When I run the ASP.NET application interactively by using the Run command in Visual…
2
votes
1 answer

how does putty detect if xfer is backing up?

So I'm trying to understand how PuTTY is implementing SCP and have a few questions. First, here's a copy of an older and (imho) easier to read version of PuTTY's SCP…
neubert
  • 15,947
  • 24
  • 120
  • 212
1
vote
0 answers

PSCP Transfer File From Windows to Windows OS

i have 2 Server with different Segmentation Server (Windows OS) . i need to backup the file weekly with simple copy/transfer file like this : pscp -P 22 -pw password root@192.168.29.10:backup.zip C:\FolderBackup This script works perfectly and copy…
Ernesto
  • 39
  • 6
1
vote
0 answers

Error while fetching the files from sftp server using powershell

I'm trying to get *.xlsx files from the sftp server folder "/From/Outbound/TEST" using putty. I know it's something to do with the source path. I tried the below but nothing is working. Please please help. "$Source/*.xlsx" '$Source/*.xlsx' $Source…
Razz
  • 71
  • 6
1
vote
2 answers

Transfer file from remote server behind another server (jumphost) to local machine using pscp

I am trying to transfer file from a remote server behind jumphost server to my local machine using pscp and SFTP. I know how to do it for a remote server but not for jumphost-ed server. Also I need to make it automated (no user interaction needed),…
1
vote
0 answers

PSCP from windows machine to EC2 instance using PSCP but files don't appear on the server

I am sending a JAR file from my local system to an EC2 instance using PSCP. I am told the request was successful, although when I SSH into my EC2 instance and look for the file in the home directory, it is not there. Any idea why this is? My…
Sean E.
  • 73
  • 2
  • 7