0
2

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 3 years have passed since last update.

scpで踏み台サーバー経由でファイルを送る

Posted at

まずは踏み台サーバーへSSH接続

tarminal
ssh ’踏み台サーバー’ -l ユーザ

tarminal
ssh 111.222.333.444 -l hogehoge

scpでファイル送信

tarminal
scp ユーザー@ファイルが置いてあるサーバー:ファイルのパス ユーザー@送り先のサーバー:保存ディレクトリ

tarminal
scp hage@333.333.44.55:/home/hage/aaa.txt huga@22.44.77.99:/home/huga/

それぞれのサーバーのパス入力

0
2
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
0
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?