How can you run `plink` to copy files?

5

1

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 files using plink command?

snoop

Posted 2015-05-12T16:42:16.963

Reputation: 153

plink is used to send a command to a ssh, and copy or data transfer ssh uses sftp(shell file transfer protocol) to use that feature you use pscp. – Francisco Tapia – 2015-05-12T17:09:42.033

plink can also be used to transfer standard input of Windows system to standard output of Linux system to copy file contents. – snoop – 2015-05-13T04:05:48.673

Can you explain us your reason? It's difficult to suggest a solution, when we do not know your constraints. – Martin Prikryl – 2015-05-13T08:09:06.820

I am only allow to use Plink command to do these operations. Installing any other softwares/exe's are not allowed on the system I am working on. – snoop – 2015-05-13T08:15:25.210

Answers

1

Here's one way to do it:

plink user@host -P 2222 -pw password < test.jpg "cat > ~/test.jpg"

martonbognar

Posted 2015-05-12T16:42:16.963

Reputation: 131