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.

沒有留言:

TWNIC Sinkhole IP

182.173.0.181 這個 IP 是 TWNIC 的 Sinkhole IP,台灣 DNS 封鎖網站的指向 IP 運作原理:已知 HiNet DNS 及學網 DNS 有部署這個機制, 會把特定的惡意、違法或遭通報網域的 A 記錄指向 182.173.0.181,藉此阻斷連線...