SSHコンフィグファイル
SSH config file
SSHコマンドを使うチャンスが増えたので、SSHコンフィグの内容をちょっと纏めます。
サンプル
-
キー認証
Host 别名 HostName ホスト名 User ユーザー名 Port ポート UserKnownHostsFile /dev/null StrictHostKeyChecking no PasswordAuthentication no IdentityFile アイデンティティーファイルパス IdentitiesOnly yes LogLevel FATAL
-
パスワード認証
Host 别名 HostName ホスト名 User ユーザー名 Port ポート UserKnownHostsFile /dev/null StrictHostKeyChecking no PasswordAuthentication yes IdentitiesOnly yes LogLevel FATAL