2. Linux - Amazon Linux - Amazon Linux 2 - 共通事項 - パスワードで ssh 接続できるようにする
- 2.1 概要
- 2.2 パスワードで ssh 接続できるようにする
2.1 概要
なんか「EC2 サイトから鍵を入手する」とかなのですが、よくわからない。
手っ取り早くパスワードログインしたい。
なんと本項も「Amazon Linux のローカル環境を作成する」を参考にさせていただきました。
この筆者の方とは友達になれそうだわ。
2.2 パスワードで ssh 接続できるようにする
/etc/ssh/sshd_config
をエディタで開いて
#PasswordAuthentication yes
#PermitEmptyPasswords no
PasswordAuthentication no
を
PasswordAuthentication yes
#PermitEmptyPasswords no
#PasswordAuthentication no
に変えて
# service sshd restart
Redirecting to /bin/systemctl restart sshd.service
これでパスワードのみでログインできるようになります。
|
|