Help us understand the problem. What is going on with this article?

ec2-userをパスワード認証にする

公式に書いてある通りではうまくいかず
一味加える必要があったゾ…(PubkeyAuthentication no)

# #ec2-userにパスワードを設定する
# sudo passwd ec2-user

# #sshd_configをちょっといじる必要がある
# sudo vim /etc/ssh/sshd_config
-----------------------------------------------------------
PasswordAuthentication yes  #パスワード認証を有効化
PubkeyAuthentication no     #鍵認証を無効化
-----------------------------------------------------------

# #sshdを再起動しないと有効にならない
# sudo service sshd restart

# #リログして確かめるゾ~
# exit

追記:↑を設定したEC2インスタンスのAMIに問題が…

そのAMIから起動したインスタンスがSSHログイン不能に /(^o^)\

とりあえずAMI化する際には

PubkeyAuthentication yes

に戻さねばという情けない状態…

今度時間あるときに詳しく調査ゾ…

Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away