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

How to pass "y" to pscp process started with PowerShell Start-Process?

I would like to pscp some files from Windows to Linux server. The following code (PowerShell) is what I was trying. It worked fine, but I need to input y, when it's trying to communicate with remote server, cause the hostname is unknown for…
Corey
  • 1,217
  • 3
  • 22
  • 39
1
vote
0 answers

Copy files from a remote server which requires superuser preliveges to local machine

Using pscp and when tried to copy files which needs root previleges. I am getting Access denied error. pscp admin@: I had to change the access previlege for the copying to work. Is there a way to copy the files…
1
vote
1 answer

Transfer folder using pscp (Putty) from Windows to Linux

Using puttys pscp -r folder\to\copy\* user@server:/path/to/copy/folder/to it only copies the content of path\to\copy\folder\* and does not include the "main" folder which the subfiles and subdirectories are in. What I need is that the folder itself…
CutePoison
  • 4,679
  • 5
  • 28
  • 63
1
vote
1 answer

Sending an input file from Excel VBA to Raspberry Pi without change in content

I am sending a text file from my Excel to a Raspberry Pi, where the Pi will read that file and get the input inside. The input is just one line and it is a simple number and nothing else (40,38 etc.) When I run this macro, I can see the input file…
1
vote
1 answer

Copy war-file to remote server with pscp

I'm using Maven 3 and I want to copy the war-file after it was built to a remote destination. I'm on a WinXP-machine and have PuTTY with its tools installed, i.e. pscp.exe exists. I read about maven-deploy-plugin, but that only seems to apply to…
sjngm
  • 12,423
  • 14
  • 84
  • 114
1
vote
2 answers

I can't transfer files to AWS ec2 using pscp. Unable to use key file .ppk (unable to open file)

I am attempting to transfer files to my ec2 instance using pscp on windows. I've already connected to the instance with ssh via putty. However, pscp is unable to open the ppk file used to authenticate. I checked the permissions of the ppk file and…
Corey Davis
  • 37
  • 2
  • 6
1
vote
1 answer

PSCP command using a batch variable

I need to transfer the latest file in a folder to aws server using a simple batch script. I am getting a date-stamped filename so ideally the largest file name should be the latest The code used is as follows @echo off SET longfile ='' for %%a in…
Joe
  • 11
  • 3
1
vote
2 answers

ssh_init: host does not exist.. trying to copy tomcat7 folder to my ubuntu EC2 instance usign PSCP

My Ubuntu ubuntu@ip-172-31-81-180:~$ sudo su root@ip-172-31-81-180:/home/ubuntu# CMD prompt: C:\Users\gsrte\Downloads>pscp C:\Users\gsrte\Downloads\tomcat7.zip ubuntu@ip-172-31-81-180:/home/ubuntu/tomcat7 Error: ssh_init: Host does not…
Santosh Ravi Teja
  • 247
  • 1
  • 7
  • 18
1
vote
1 answer

Sync Linux directory with Windows network path

I have a scenario where I have to sync a Linux directory and a windows network path. For now I'm doing this in two steps pscp for copying the file from the Linux machine to my local windows machine. xcopy for copying the file from my machine to the…
ramp
  • 185
  • 7
1
vote
1 answer

PuTTY secure copy client | -bash: pscp: command not found |

I am trying to learn the Amazon's AWS - EC2 service and was following its tutorial (at https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EC2_GetStarted.html) I have successfully launched an instance and am on Step:2, Connect to your instance. I…
Tushar Aggarwal
  • 827
  • 1
  • 10
  • 26
1
vote
2 answers

Cannot compile PuTTY, Plink or Pscp on Windows due to missing Windows/MSVC subdirectory

I need to download and compile plink/pscp on my Windows. Since I need specific version (0.69), I searched for the tag, and checked out to that commit. In putty readme, they write that if I want to compile on windows, there is Visual studio…
ilansch
  • 4,784
  • 7
  • 47
  • 96
1
vote
1 answer

Target directory with space in PuTTY pscp via NAnt

This target is OK (D:\Temp\sgr.tar.gz):
Stéphane GRILLON
  • 11,140
  • 10
  • 85
  • 154
1
vote
1 answer

File transfer on Raspberry Pi using pscp

I am trying to send file from windows local system to QEMU raspberry pi emulator.But every time I am getting "access denied".I have downloded pscp.exe. I have tried the following commands: pscp.exe -scp myfile.txt pi@192.168.1.3:/home/pi pscp.exe…
Sneha Bansal
  • 941
  • 1
  • 13
  • 38
1
vote
0 answers

How to pscp command to copy files into destination directory in windows?

I am using pscp to copy files between two windows machines. If I use, without specifying the destination directory its working as expected as shown below: PS C:\Users\Administrator\Desktop> .\pscp.exe -pw test123…
rcubefather
  • 1,534
  • 6
  • 25
  • 49
1
vote
0 answers

How to quit the pscp cmd when login to remote Linux machine failed?

I use the below cmd inside Batch script to copy a pkg from Windows to remote Linux machine. pscp -pw %machinePW% configScripts.tar %machineUN%@%machineIP%:./ When a given UserName or machinePW is wrong then it prints "Access denied" and Hangs the…
Sunil Kumar
  • 367
  • 2
  • 5
  • 19