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"
Related videos on Youtube
Author by
snoop
Updated on September 18, 2022Comments
-
snoop over 1 year
A command line putty's version
plink
. Copying files from Windows system to Linux system is possible usingplink
, but how?I know the same can be achieved through
pscp
, but I want to achieve this usingplink
because of some reason.How can you copy files using
plink
command?-
Admin about 9 yearsplink 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 about 9 yearsplink can also be used to transfer standard input of Windows system to standard output of Linux system to copy file contents.
-
Admin about 9 yearsCan you explain us your reason? It's difficult to suggest a solution, when we do not know your constraints.
-
Admin about 9 yearsI 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 over 6 years
-