EC2(Linux)パスワード認証設定方法 - tetsuyaf1100/hello-world GitHub Wiki

  • ユーザ作成・パスワード設定
useradd testuser
passwd testuser
  • sudo権限の追加
sudo visudo

testuser        ALL=(ALL)       ALL
  • sshd_configの設定
vi /etc/ssh/sshd_config

PasswordAuthentication yes
  • sshdサービス再起動
systemctl restart sshd