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?

Show comments

Submit an answer

This textbox defaults to using Markdown to format your answer.

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

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

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