简体   繁体   English

如何将远程位置的文件上传到我的本地主机网站?

[英]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.

相关问题 如何将我的本地主机站点上传到在线服务器? - How do I upload my localhost site to an online server? 如何在我的网站上上传文件? - How to upload file in my website? 如何将文件上传到服务器并在数据库中使用 - How do I upload a file to my sever and use it in my database 如何使用CodeIgniter在本地主机上的网站上集成Facebook登录? - How do I integrate facebook login on my website on localhost using CodeIgniter? 我如何在我的PC中使用php从其他网站动态自动自动将许多csv文件下载到localhost - How can i download many csv file dynamically automatic from other website to localhost in my pc in php 如何在不下载整个文件的情况下计算远程位置的 MP3 文件的持续时间? - How do I calculate the duration of an MP3 file in a remote location without downloading the entire file? 如何在Web应用程序中实现基于位置的服务? 除了$ _SERVER ['REMOTE_ADDR'] ..在PHP中 - How do i implement Location Based Service in my web application? except $_SERVER['REMOTE_ADDR'] .. In PHP 如何安全地存储网站的配置文件? - How do I store my website's config file securely? 如何为我的网站创建安装文件? - How do I create an installation file for my website? 如何为我的博客制作上传文件表格? - How do I make an upload file form to my blog?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM