2026年5月14日 星期四

scp remote to remote

有 3 台主機 HostA、HostB、HostC
在 HostC 下 scp 指令要從 HostA 複製檔案到 HostB,都透過 Key auth

預設情況下 (沒有加參數 -3)
HostC 對 HostA 要建 Key,HostA 對 hostB 要建 Key
資料流是直接從 HostA 到 HostB,沒有經過 HostC

第二種情況,透過 HostC 中繼,加參數 -3
HostC 對另外兩台建 Key,資料流有經過 HostC 本地

-3 Copies between two remote hosts are transferred through the local host.
Without this option the data is copied directly between the two remote hosts.
Note that, when using the legacy SCP protocol (via the -O flag),
this option selects batch mode for the second host as scp cannot ask for passwords or passphrases for both hosts.
This mode is the default.

沒有留言:

Windows 10 ESU extended to 2027-10-12

微軟延長了 Windows 10 ESU 支援時間至 2027-10-12 (又加一年) 可以使用 ConsumerESU 腳本快速啟用 ESU 下載 ZIP 包解開後,以系統管理員身分執行 Consumer_ESU_Enrollment_run.cmd