LoginSignup
0
1

More than 5 years have passed since last update.

scp でタイムアウトする時には -o オプションで ConnectTimeout を設定する

Last updated at Posted at 2019-04-16

コマンド例

$ scp -C -o 'ConnectTimeout 600' ${コピー元} ${コピー先}

ConnectTimeout の単位は秒なので、上記の場合タイムアウト時間は10分

-o オプションの意味

設定ファイル ssh_config(5) で使われている形式のオプションを ssh に渡すために使います。 これは scp が独立したコマンドラインオプションを持っていないような 項目を設定するのに便利です。 下のリストにあるオプションの詳細と可能な値については、 ssh_config(5) を参照してください。

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