Copy file on SSH with command prompt
Sometimes it’s necessary to copy some files from a web server hosted on Linux only accessible by SSH protocol.
I will not detail how to use SSH nor the Putty Software (only on Windows).
Once connected wtih Putty, it’s possible to use the “scp” command on Linux.
scp [options] [[username@]source:]source-file [[username@]target:][target-file]
username : username on the server (source or target)
source : server address which contains the files to copy
target : server address where to copy files
Options
-p : doesn’t change the access DateTime and access rights of the files
-q : quiet mode
-r : recursive mode (to copy folders)
-v : verbose mode (print all command’s messages)
Oherwise it’s possible to use, on Windows, the WinSCP software which allows to use a GUI to copy files.