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
1
vote
1 answer

Transfer multiple files from SFTP older than yesterday using PSCP

I am using the following command to transfer from a SFTP location to a local folder. This transfers all the files from the SFTP location to the local folder. How do I transfer files that are only for e.g. older than yesterday? cmd /c…
VN Khan
  • 21
  • 7
1
vote
1 answer

How to run PSCP cmd window step in my Python script

I am running Hadoop MapReduce and other SSH commands from a Python script using the paramiko module (code can be seen here). Once the MapReduce job is complete, I run the getmerge step to get the output into a text file. The problem is, I then have…
Chris Nielsen
  • 839
  • 1
  • 16
  • 31
1
vote
1 answer

Call command program that requires user input

Using VBScript (run through cscript), how can I call another command program (pscp in this case), which also requires user input, etc.? The purpose is that the initial VBScript will gather the parameters (password, user, etc.), then the pscp…
simonalexander2005
  • 4,338
  • 4
  • 48
  • 92
1
vote
1 answer

scp or pscp transfer files to ssh machine but not showing any copied files in machine

I am using putty ssh client in windows to login to remote machine I transfer files using scp and pscp from my local to server scp: scp -r script-1/ root@104.130.169.111:/mounarajan/script-1 Response in command line: artist_dedup_urls1 …
Mounarajan
  • 1,357
  • 5
  • 22
  • 43
1
vote
1 answer

putty and pscp, are they the same?

Is there away to combine this into one batchfile? This is a hand me down task, but I think I should be able to combine the two. Why open Putty once and then open another tool pscp? I just don't know the difference between putty and pscp? Any help or…
user3314404
  • 79
  • 1
  • 2
  • 10
1
vote
2 answers

Using QProcess for CLI

How can I use QProcess for Command Line Interactive arguments, I am trying to a transfer a file usimg scp which prompts for password QString program = "c:/temp/pscp.exe"; QStringList arguments; arguments << "C:/Users/polaris8/Desktop/Test1GB.zip" <<…
user3110438
  • 95
  • 1
  • 7
0
votes
1 answer

How can pscp filepath with spaces?

I have this file: C:\Documents and Settings\tc\My Documents\Downloads\ee_server_wizard.zip and I am trying to upload it to server via pscp like this: pscp C:\Documents and Settings\tc\My Documents\Downloads\ee_server_wizard.zip…
chchrist
  • 18,854
  • 11
  • 48
  • 82
0
votes
2 answers

batch copy files from windows to linux

I have a lot of linux driven devices which I need to configure and setup. All devices have same root pass. Now I need to copy files on those devices. One way is using pscp.exe, but this utility requires interaction, prompting The server's host key…
rmflow
  • 4,445
  • 4
  • 27
  • 41
0
votes
0 answers

Is there a way in Batch to stop/log if PSCP fails to transfer a file?

The line for PSCP I am using is pscp -scp -2 -pw %PDUPW% %curfileloc%\devices\%PDUName%\%PDUName%p15.p15 %PDUUser%@%PDUIP%:/ssl/%PDUName%.p15 What I am looking to do is if the file fails to upload to write to some log file which units the upload…
0
votes
0 answers

How can I use a PSCP call within a Python script to upload and download data?

Background: I have an AWS EC2 instance in which I have my analytical Python scripts which output files to the AWS storage. I have been using the command terminal from my local machine to upload the input data and download those outputs. But this has…
Vance
  • 71
  • 7
0
votes
0 answers

pscp windows to linux fails with Server refused our key

I am trying to transfer a file from windows to Linux using pscp. This works perfectly fine: pscp -i C:\ssh\access.ppk -v D:\test_1.txt user1@host1:/tmp/ However, this fails: pscp -i C:\ssh\access.ppk -v D:\test_1.txt user1@host2:/tmp/ With below…
Maven
  • 14,587
  • 42
  • 113
  • 174
0
votes
1 answer

How can I avoid manually specifying my private key file when using PuTTY's pscp command?

I have installed PuTTY and configured public/private key pairs that work nicely from inside PuTTY. When I use pscp, I find that I have to use the -i *keyfile* option to specify the private key (I have the keys in the C:\users\username\.ssh…
0
votes
0 answers

Change Kex Algorithm for pscp File Transfer from Powershell

I'm using Powershell to write a sftp script using pscp from PuTTY to transfer files between windows machines. The issue is the Key Exchange algorithm options are not selectable from command line. Command used: D:\apps\PuTTY\pscp.exe -i…
0
votes
0 answers

ssh_init: Host does not exist while trying to copy file from pi to my windows pc

C:\Users\ishan>pscp -i C:\Users\ishan\Private_Key.ppk beegnd-4:/tmp/.satnogs /C:\Users\ishan\OneDrive\Desktop\SatCom is what is used. I am trying to copy iq dumps from my pi.
0
votes
1 answer

Maven - exec-maven-plugin - CreateProcess error=2, The system cannot find the file specified

I am using this code to upload a JAR file to a Server right after the Install phase: org.codehaus.mojo exec-maven-plugin 3.0.0
Joe Almore
  • 4,036
  • 9
  • 52
  • 77