#SSH#Config#file

SSHコンフィグファイル

SSH config file

SSHコマンドを使うチャンスが増えたので、SSHコンフィグの内容をちょっと纏めます。

サンプル

  1. キー認証

    Host 别名
      HostName ホスト名
      User ユーザー名
      Port ポート
      UserKnownHostsFile /dev/null
      StrictHostKeyChecking no
      PasswordAuthentication no
      IdentityFile アイデンティティーファイルパス
      IdentitiesOnly yes
      LogLevel FATAL
    
  2. パスワード認証

    Host 别名
      HostName ホスト名
      User ユーザー名
      Port ポート
      UserKnownHostsFile /dev/null
      StrictHostKeyChecking no
      PasswordAuthentication yes
      IdentitiesOnly yes
      LogLevel FATAL
    

参照

  1. OpenSSH SSH client configuration files