LoginSignup
0
0

More than 1 year has passed since last update.

ESXiにSSHログインできない

Last updated at Posted at 2019-06-23

ログイン画面までは表示されるけどパスワード認証が表示されない。

alt

原因はパーミッション

  • 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
0
0
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
0
0