Question

How I transfer local files using Putty to my remote server?

I am using nginx - Ubuntu, and I would like know how put local files into my remote server.

Example the directory of my local file:

C:\Users\Jonny\Desktop\Websitenw\Logo\image.png

Put in:

/usr/share/nginx/html/websitenw/images/

What is the command line in Putty?

Subscribe
Share

pscp source_file_name userid@server_name:/path/destination_file_name.

This comment has been deleted


Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Here is what worked for me on Windows:

  1. Download Putty package
  2. Open cmd
  3. cd to the Putty’s folder - inside that folder pscp.exe file should reside
  4. Suppose we have these folders:

file to copy: C:/Desktop/file.txt

private key: C:/Desktop/privatekey.ppk

destination on server: root@droplet_IP:/opt/tomcat/somefolder

then you should run this command:

pscp -i C:/Desktop/privatekey.ppk C:/Desktop/file.txt root@IP:/opt/tomcat/somefolder

pscp -r your/local/directory/ userID@hostserver:/your/destination/directory

This works fine for me. I copied entire directory with all sub-directories from my local windows machine to linux server.

Depends upon the size of the directory, the time increases.

you can use VSFTP or FTP, or simplest way by using SCP. This will directly copy file from localhost to server

You will need to download an additional file called pscp.exe

Check out the guide here.

You need another program, like Filezilla, to securely transfer files. See the tutorial on using Filezilla on DO.