最終更新:2021-03-15 (月) 03:58:38 (1110d)
Linux/etc/ssh/sshd_config
メモ
設定する値 デフォルト PermitRootLogin no prohibit-password (コメントアウト状態でこの値) PubkeyAuthentication yes yes (コメントアウト状態でこの値) PermitEmptyPasswords no no (コメントアウト状態でこの値) PasswordAuthentication no yes (コメントアウト状態でこの値) X11Forwarding
鍵ファイル
700 ~/.ssh/ 600 ~/.ssh/authorized_keys2
特定のコマンドのみ実行させる
- PermitRootLogin
PermitRootLogin forced-commands-only
- authorized_keysのcommand=""に指定したコマンドのみ実行される