6

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?

Quip Yowert
  • 103
  • 1
snoop
  • 163
  • 1
  • 1
  • 7
  • 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 May 12 '15 at 17:09
  • plink can also be used to transfer standard input of Windows system to standard output of Linux system to copy file contents. – snoop May 13 '15 at 04:05
  • Can you explain us your reason? It's difficult to suggest a solution, when we do not know your constraints. – Martin Prikryl May 13 '15 at 08:09
  • 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 May 13 '15 at 08:15
  • 1
    https://superuser.com/questions/1289455/create-text-file-on-remote-machine-using-plink-putty-with-contents-of-windows-lo – Abhi Feb 23 '18 at 13:04

1 Answers1

4

Here's one way to do it:

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