Run the PuTTY SSH (Secure Shell) program when you need to establish a secure, encrypted network connection to a remote Unix/Linux computer storing files you require. Note that the PuTTY program by itself doesn’t copy files, it only makes the connection between your computer and the remote machine. To get files you use a related program, pscp.exe, included with PuTTY. Run the pscp.exe executable on the Windows command line to quickly copy files from a remote PC to the local computer hard drive. Show Linux and WindowsA program like PuTTY is necessary to facilitate work between computers based on Microsoft Windows and those running "flavors" of Linux, such as Fedora, Ubuntu and Debian. Programs that run on Windows don't run on Linux and vice versa. PuTTY serves as a "bridge" between the two systems, allowing you to access Linux resources while using a Windows PC. PuTTY in Your HandsPuTTY is not a standard part of Microsoft Windows; to use it, you first need to download it. It is available for free for most users. Go to www.putty.org, click the download link and install it as you would other Windows software. Open Windows Command LineClick the Start button on the Windows computer and click the Run or Search box. Type cmd in the box, press the Enter key, and the command line window will appear. On Windows 10, the Command Prompt appears in a list of search results. Click it to get the command line. Find pscp ProgramType cd /path_to_pscp/ at the command prompt except replace /path_to_pscp/ with the exact path to the “pscp.exe” file. Press the Enter key. Run Secure Copy (pscp)Enter pscp.exe :/file_path/filename c:\directory\filename on the command line except replace “username” with the name of an account that has permissions to access the remote computer through SSH, replace “x.x.x.x” with the IP address or hostname of the remote SSH computer, replace “file_path” with the directory path to the file you wish to retrieve, replace “filename” with the actual name of the file you want to transfer, and replace “directory” with the path and name of the directory where you wish to save the file on the local computer. SSH File TransferPress the Enter key. Type the password for the account authorized to connect to the remote SSH computer if prompted and press Enter again. The file will transfer and save to the local computer. WinSCP - Alternative to PuTTYAnother free program, WinSCP, also lets you transfer files in much the same way as PuTTY. Unlike PuTTY’s command line that uses commands you type, WinSCP has a convenient and easy-to-use graphical user interface (GUI). WinSCP displays two lists of files: one in the current directory on your Windows PC, and another in the remote Linux directory you’re logged into. You select the files you want transferred, then drag and drop them into the other directory’s list.
Can someone bring me a clear and specified pattern or even an example of that command to my situation ?
Dave M 4,50421 gold badges30 silver badges30 bronze badges asked Dec 27, 2019 at 2:29
You can use PSCP to copy files from Windows to Linux.
For example:-
answered Dec 27, 2019 at 5:55
Sukhjinder SinghSukhjinder Singh 1,9542 gold badges9 silver badges17 bronze badges 1 You can use answered Dec 27, 2019 at 2:36
Mircea VutcoviciMircea Vutcovici 16.8k4 gold badges53 silver badges80 bronze badges 4 Try WinSCP Get it here You can login to the Linux server and transfer files using a GUI. answered Dec 27, 2019 at 15:57
DeatonDeaton 1641 silver badge7 bronze badges You can also use WinSCP from the Windows machine to copy files to or from the linux server. https://winscp.net/eng/index.php Note that you will need to setup an ftp server on the linux server if you don't already have one running with this method. answered Dec 27, 2019 at 22:45
1 How copy file from Unix to Windows using PuTTY?2 Answers. Download PSCP.EXE from Putty download page.. Open command prompt and type set PATH=<path to the pscp.exe file>. In command prompt point to the location of the pscp.exe using cd command.. Type pscp.. use the following command to copy file form remote server to the local system. pscp [options] [user@]host:source target.. Can you transfer files with PuTTY?PuTTY pscp (or scp) provides a file transfer application for Secure Shell (SSH) to copy files either between two directories on the configuration node or between the configuration node and another host.
|