[英]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.我使用 PUTTY 在 Azure Linux VM 和 Localhost PC 之间有一个 localhost 端口转发 SSH 隧道。 So when I localhost:8080 on my windows PC, I see my static website hosted on the AzureVM.
所以当我在我的 Windows PC 上 localhost:8080 时,我看到我的静态网站托管在 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.
在我单击本地主机网站上的文件上传时,它会在我的本地 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?有什么办法可以让它在另一台服务器(或相同的天蓝色 VM)或 Azure Blob 存储上查找文件?
Thanks!谢谢!
Ok to upload through putty is a tedious process as you need code running on the linux machine to do it .好的,通过 putty 上传是一个乏味的过程,因为您需要在 linux 机器上运行代码来完成它。
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我们通常使用 putty 来控制 AWS 机器并直接在其上运行命令,并使用另一个 FTP 程序,如 File Zilla、WinSPC 或类似的东西进行上传
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 .要直接使用 putty 上传程序,您必须自己编写协议或使用 putty 插件,但使用 .
here some choices这里有一些选择
https://helpdeskgeek.com/free-tools-review/the-best-ftp-tools-to-transfer-files-to-your-website-domain/ 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如果您真的想解决使用 putty 传输文件的麻烦,请使用此链接作为开始https://www.hostknox.com/tutorials/ssh/putty/file-transfer
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.