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?

  • 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 4: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 8: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 8:15
  • 1
    superuser.com/questions/1289455/… – Abhi Feb 23 '18 at 13:04

Here's one way to do it:

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.