4
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

cloud-initでパスワード認証できるユーザーを作成する

Posted at

公開鍵認証したくない時がある。

/etc/cloud/cloud.cfg

users:
 - default

disable_root: 1
ssh_pwauth:   1

system_info:
  default_user:
    name: centos
    plain_text_passwd: 'P@ssw0rd'
    lock_passwd: false

人は誰しも、そういう時がある。
秘密鍵のパスワードを忘れた時、
コンソールを使わなければならない最悪の時、
夜、眠れない時。
だけどこれだけは忘れないで欲しい。rootは禁止。

4
2
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
4
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?