ログイン画面までは表示されるけどパスワード認証が表示されない。
原因はパーミッション
SSHサービスが起動していない?
⇒起動しているし、ログイン画面は表示されている。チャレンジレスポンス認証になっていない?
⇒なってるし、間違ったらエラーが表示されるはず。
- 変なログが出ていない?
⇒ 鍵のパーミッションエラー?!
/etc/ssh/sshd_config line 15: Unsupported option PrintLastLog
error: @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
error: @ WARNING: UNPROTECTED PRIVATE KEY FILE! @
error: @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
error: Permissions 0755 for '/etc/ssh/ssh_host_rsa_key' are too open.
error: It is required that your private key files are NOT accessible by others.
error: This private key will be ignored.
error: key_load_private: bad permissions
error: Could not load host key: /etc/ssh/ssh_host_rsa_key
error: @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
error: @ WARNING: UNPROTECTED PRIVATE KEY FILE! @
error: @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
error: Permissions 0755 for '/etc/ssh/ssh_host_dsa_key' are too open.
error: It is required that your private key files are NOT accessible by others.
error: This private key will be ignored.
error: key_load_private: bad permissions
error: Could not load host key: /etc/ssh/ssh_host_dsa_key
Disabling protocol version 2. Could not load host key
sshd: no hostkeys available -- exiting.
特にいじっていないが、パーミッションが600以外になっている模様。
とりあえず 物理コンソール(例の黄色画面で ALT + F1 で表示される)で以下を叩くとなおった。
chmod 600 /etc/ssh/ssh_host_rsa_key
chmod 600 /etc/ssh/ssh_host_dsa_key