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?
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:
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.
pscp source_file_name userid@server_name:/path/destination_file_name.
This comment has been deleted