How can you run `plink` to copy files?

10,651

Here's one way to do it:

plink user@host -P 2222 -pw password < test.jpg "cat > ~/test.jpg"
Share:
10,651

Related videos on Youtube

snoop
Author by

snoop

Updated on September 18, 2022

Comments

  • snoop
    snoop over 1 year

    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?

    • Admin
      Admin about 9 years
      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.
    • Admin
      Admin about 9 years
      plink can also be used to transfer standard input of Windows system to standard output of Linux system to copy file contents.
    • Admin
      Admin about 9 years
      Can you explain us your reason? It's difficult to suggest a solution, when we do not know your constraints.
    • Admin
      Admin about 9 years
      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.
    • Admin
      Admin over 6 years