Questions tagged [pscp]

This tag should be used for questions related to use of PSCP; a freeware SCP (Secure CoPy) program for the Windows command line processor.

PSCP is a freeware SCP (Secure CoPy) program for the Windows command line processor. You can use this program instead of FTP for copying files to or from the Unix servers at the NBER offices. FTP is not allowed from clients outside nber.org to servers inside the firewall because FTP leaves passwords in plain-text and vulnerable to eavesdropping. PSCP should work with any host supporting SSH, not just at NBER.

source - http://www.nber.org/pscp.html

26 questions
8
votes
1 answer

How can I resume a broken SFTP download in Window 7 console?

In my Windows 7 console, I can download file from SFTP with the command d://putty//pscp -P 22 root@serverip:/root/movie c://movie How can I resume a broken download in Window 7 cmd console when the file is very large? Can pscp resume a broken…
showkey
  • 291
6
votes
1 answer

How can you run `plink` to copy files?

A command line putty's version plink. Copying files from Windows system to Linux system is possible using plink, but how? I know the same can be achieved through pscp, but I want to achieve this using plink because of some reason. How can you copy…
snoop
  • 163
5
votes
4 answers

Is there a way to not overwrite existing files when using pscp?

I am trying to copy files from a folder on a server using a batch file, however, I don't want the files in the destination folder to be overwritten. This is what I have: set /p address=ip address: pause pscp -pw "password"…
jhast1
  • 51
5
votes
3 answers

How to copy a file using pscp through an intermediary gateway server hop

I have a linux jump box between me and a remote server. I have seen a few posts on how to do this with scp (e.g. here), but I am on a Windows box, so the situation is slightly different. I want to copy a file from my local windows machine, through…
Scott
  • 1,683
4
votes
1 answer

SCP connection doesn't close after file copy whereas for PSCP it does

Hi I have an InterNiche ssh server stack running on some custom hardware. I was trying to copy some files from server to client pc using scp command like scp user@xxx.xxx.xxx.xxx:\\path\\to\\file /local/file/path but found that connection remains…
3
votes
1 answer

PSCP Does not accept hostkey

I'm running pscp on Windows from a script. If I add echo y | pscp.exe... It works. However, I can't get it to accept the hostkey using pscp.exe -hostkey aa:bb:cc... I've also tried pscp.exe -hostkey "ssh-rsa 2048 aa:bb:cc..." and this doesn't…
Matt G
  • 133
3
votes
1 answer

Using pscp With Remote Environment Variables

I'm using pscp.exe to transfer files from Windows to Linux. This command works fine: pscp myfile.txt user@host:/airflow/dags The location on the Linux host into which I want to transfer the files is stored in a environment variable: $ echo…
jamiet
  • 305
2
votes
0 answers

Is there a way to ignore symlinks when copying from Linux to Windows?

Ignoring symlinks when copying from one Linux machine to another is easy: rsync -a --no-links @: For Linux to Windows, I'm currently using PSCP which provides no such option: pscp -pw -scp -4 -r…
Blackwood
  • 195
1
vote
0 answers

transferring files with spaces in them with putty's pscp

I tried the following to no avail: pscp -load test username username@domain.tld:"file name.ext" "file name.ext" pscp -load test username "username@domain.tld:file name.ext" "file name.ext" pscp -load test username username@domain.tld:"file\…
neubert
  • 7,574
  • 39
  • 94
  • 156
1
vote
1 answer

Getting "Remote to remote not supported" when copy file from Windows host to remote Ubuntu server using pscp

I'm trying to copy a file from a Windows host to a remote Linux (Ubuntu) server using pscp. This looks straight forward at first: pscp -P 22 'C:\text.txt' user@ip:~/Downloads However, I get the following error: 'C:\test.txt': Remote to remote not…
1
vote
0 answers

PSCP - Copy extensionless files from Windows to Linux-based OS

So I have been struggling to copy a file without an extension from Windows to a Raspberry Pi using PSCP provided by PuTTY. However, Windows requires an extension in the command (just a dot after the filename if none, which is the problem) and the…
1
vote
1 answer

PSCP copy files windows to windows over lan fails

Trying to copy from PC A to PC B but getting network error Username and password are correct Firewall is off Able to ping each other Folder C:\PCB to C:\B I tried: PSCP.exe -pw 1qaz@WSX admin@10.0.0.2:/PCB/*.* C:\B Fatal: Network error:…
1
vote
2 answers

How to copy files with only 1 extension and not double in command prompt

I need to copy only .jpg and not .jpg.jpg from a particular folder. When I do a copy c:\data\*.jpg D:\backup\ both .jpg and .jpg.jpg named files are copied over and I'm not sure how to omit the double extension named files from the copy…
0
votes
1 answer

Error EOF using pscp to transfer files to windows server

I am using pscp to transfer files from my computer to a windows server but it doesn't work. here is the command I'm using and the result pscp -v -scp file_test.txt LOGIN@HOST_ADDRESS:C:.\ Looking up host "HOST_ADDRESS" Connecting to IP_ADDRESS port…
0
votes
0 answers

how to transfer file without replacing old files using pscp by vb6

I have an app. when on click it will transfer all text files to server but it replaces the old files. I want to transfer the new files without replacing the old files. here is my code that when you click the command key and will run the command…
Vincent
  • 103
1
2