Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Linux by (18.4k points)
edited by

I am running the putty client on the Windows machine to connect successfully to the Linux box. Now I want to be able to copy the file from a Linux machine under this path /home/ubuntu/myfile to C:/Users/Anshul/Desktop on the local computer. The user of the Windows machine is Anshul. I am getting the following lines on the putty but it is not working:

scp /home/ubuntu/myfile ip_address_of_windows_machine:C:/Users/Anshul/Desktop 

As per my knowledge, the path for the Windows machine is wrong. Please help as I have banged my head on a large number of forums but none seem to give the correct path for the Windows server. Don't suggest alternate options like WinScp

1 Answer

0 votes
by (36.8k points)

Download the pscp from the Putty download page, then use it from the windows command Line CMD is as follows:

pscp username_linux_machine@ip_of_linux_machine:/home/ubuntu/myfile.ext C:\Users\Name\Downloads

Copying starts once you enter this password for any Linux machine.

Want to be a Linux expert? Come and join this linux course

Related questions

0 votes
1 answer
asked Nov 30, 2020 in Linux by dev_sk2311 (45k points)
0 votes
1 answer
asked Jan 24, 2021 in Linux by dev_sk2311 (45k points)
0 votes
1 answer

31k questions

32.8k answers

501 comments

693 users

Browse Categories

...