By Nay
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?
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!
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.
Here is what worked for me on Windows:
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
you can use VSFTP or FTP, or simplest way by using SCP. This will directly copy file from localhost to server
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.