Nikz
Nikz

Reputation: 51

How do I upload a file in a remote location to my localhost website?

I have a localhost port forwarded SSH tunnel between an Azure Linux VM and Localhost PC using PUTTY. So when I localhost:8080 on my windows PC, I see my static website hosted on the AzureVM.

I need to upload some remote files to this website. At the moment when I click the file upload on the localhost website, it searches for files on my local windows pc.

Is there any way I could make it look for files on another server(Or the same azure VM) or maybe Azure Blob storage?

Thanks!

Upvotes: 1

Views: 190

Answers (1)

JonoJames
JonoJames

Reputation: 1223

Ok to upload through putty is a tedious process as you need code running on the linux machine to do it .

We generally use putty to control the AWS machine and run commands directly on it and use another FTP program like File Zilla , WinSPC or somthing similar for uploading

To upload a program directly with putty you have to write the protocol yourself or use a putty add-ons but its a pain to work with .

here some choices

https://helpdeskgeek.com/free-tools-review/the-best-ftp-tools-to-transfer-files-to-your-website-domain/

If you really want to go through the headaches of using putty to transfer files use this link as a start https://www.hostknox.com/tutorials/ssh/putty/file-transfer

Upvotes: 1

Related Questions