環境
- IDCF Cloud
- CentOS Linux release 7.0.1406
事象
- rebootした後、rootでsshログインできなくなる(Permission Denied)
原因
/root/.ssh/authorized_keys
が空になる
対応
- 問題のスクリプトを停止する
# chkconfig cloud-set-guest-sshkey.in off
error reading information on service cloud-set-guest-sshkey.in: No such file or directory
- 無いと言われるので探す
# systemctl list-units --type=service
cloud-set-guest-sshkey.service loaded active exited SSH Public Keys Download Client for CloudStack
# systemctl disable cloud-set-guest-sshkey.service
# systemctl stop cloud-set-guest-sshkey.service
- 無事ログインできたし、rebootしても
authorized_keys
が消えなくなった