1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

SSHポート転送して踏み台経由でデータをコピーする

Posted at

やりたいこと

踏み台サーバを経由してデータをコピーする
ローカル <- 踏み台 <- 宛先

事前にポートが空いているかを確認する

ポート番号は適当なものを
netstat -an | grep 10022

ポート転送

下記コマンドを実行する
ssh -N -f -L 10022:<宛先> <ユーザ>@<踏み台>

データコピー(rsync)

下記コマンドを実行する
rsync -avzn --bwlimit=4096 -e 'ssh -p 10022' localhost:<コピー元>/ <コピー先>/

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?