7
4

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/configの設定項目に関する備忘録

7
Posted at

前置き

言わずと知れたSSHの設定ファイル。
利用用途に関しては、ネットにたくさん転がっているので割愛。
備忘録として、つらつらと書いておきます。

本題

サンプル

Host dev
  HostName dev-server
  User me
  Port 22
  UserKnownHostsFile /dev/null
  StrictHostKeyChecking no
  PasswordAuthentication no
  IdentityFile /path/to/key
  IdentitiesOnly yes
  LogLevel FATAL
  ForwardAgent yes
  ServerAliveInterval 20
  ServerAliveCountMax 10

設定一覧

項目 概要
HostName ホスト名
User ユーザー名
Port ポート番号
UserKnownHostsFile known_hostsファイルのパス
StrictHostKeyChecking 認識していないホストへの接続設定
PasswordAuthentication パスワードによるログインの制御
IdentityFile 鍵の指定
IdentitiesOnly IdentityFileが必要か否かの設定
LogLevel ログレベルの設定
ForwardAgent エージェントフォワードの有効無効
ServerAliveInterval sshdサーバーとの応答確認の感覚
ServerAliveCountMax 応答確認をする回数

もっと詳しく知りたい人はこちら

7
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
7
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?