LoginSignup
12
13

More than 5 years have passed since last update.

内部通信でのSSHのチューニング

Posted at

内部の大量のサーバにforとかansibleとかでsshしまくる時のチューニング

環境

  • CentOS6
  • OpenSSH 6.6
オプション
-c arcfour256 ファイル転送などで倍くらい早くなる
ControlMaster=auto
ControlPersist=24h
ControlPath ~/.ssh/mux-%r@%h:%p
コネクション使いまわす?
2回め以降は10倍以上早くなる
UserKnownHostsFile=/dev/null
StrictHostKeyChecking=no
内部通信なのでフィッシングとかには合わないので無効
LogLevel=ERROR 好みに合わせて
bashrc
alias ssh='ssh -c arcfour256 -o ControlMaster=auto -o ControlPersist=24h -o "ControlPath ~/.ssh/mux-%r@%h:%p" -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o LogLevel=ERROR -o ForwardAgent=yes'
12
13
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
12
13