4
4

More than 5 years have passed since last update.

SSH Tips

Last updated at Posted at 2014-05-02

ssh まわりのメモ

ログイン可能ユーザの限定

AllowUsers hoge

Tunneling 時の Broken Pips 防止

# Client::~/.ssh/config
ServerAliveInterval 120

# Server::/etc/ssh/sshd_config
ClientAliveInterval 60

known_hosts の警告を無視

% ssh hogehoge.com -o "StrictHostKeyChecking no"

踏み台先の LAN 内ホストへ多段接続

ssh -l ${USER} -L ${LOCAL_PORT}:${TARGET_HOST}:${TARGET_PORT} ${RELAY_HOST}
4
4
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
4
4