Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to copy file from linux to windows [closed]

Tags:

unix

Anyone please help me how to copy files from Linux command prompt to windows. I am connecting to Linux system using putty in windows system

like image 847
chandan DN Avatar asked Oct 21 '14 05:10

chandan DN


1 Answers

Before you can start your transfer you should be following the below steps:

  1. Setup your Linux sever for SSH access.
  2. Install Putty on Windows machine.
  3. The Putty-GUI can be used to SSH-connect to your Linux Box, but for file- transfer, we just need one of the putty tools called PSCP
  4. With Putty installed, set Putty's path so that PSCP can be called from DOS command line.
  5. Putty is installed with default settings (in C-drive).If you install Putty in some other DIR, please modify the below commands accordingly.
  6. Now on Windows DOS command prompt: a) set the path from Windows Dos command line(windows): type this command: set PATH=C:\Program Files\PuTTY b) check / verify if PSCP is working from DOS command prompt: type this command: pscp

The copy command should be something like below:

pscp.exe linux-username@linux-server-ipaddress: [source-DIR-inLinux] [destination-DIR-inWin]

This link should help...!

like image 159
sTg Avatar answered Sep 21 '22 13:09

sTg