Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
需要将 1 个文件从没有 SSH 访问权限的旧主机传输到我有 SSH 访问权限的新主机。很难弄清楚这一点。寻找一个简单的答案,如果有的话。并且还试图避免从我的本地机器上传缓慢的时间,因此需要服务器到服务器传输的原因。
如果您有要从旧主机移动的文件的 URL,则可以wget在 SSH 终端中使用该命令。如果需要,您可以将其用于任何文件扩展名或文件夹。
wget
例如,如果你想移动http://www.yourhost.com/file.zip到你的新主机,你可以通过 SSH 进入你想下载的文件夹,然后输入:
http://www.yourhost.com/file.zip
wget http://www.yourhost.com/file.zip
你可以使用FTP吗?您可以使用它来传输文件。