SSH 비밀번호로 접속하기

Amazon Linux 2023 기준입니다.

1.sudo vim /etc/ssh/sshd_config

 62 # Explicitly disable PasswordAuthentication. By presetting it, we
 63 # avoid the cloud-init set_passwords module modifying sshd_config and
 64 # restarting sshd in the default instance launch configuration.
 65 PasswordAuthentication yes
 66 PermitEmptyPasswords no
 67
 68 # Change to no to disable s/key passwords
 69 #KbdInteractiveAuthentication yes

2.sudo systemctl restart sshd

https://kukuta.tistory.com/293

'Linux' 카테고리의 다른 글

Sudo redirection does not work  (0) 2024.06.09
Vim settings  (0) 2024.06.09
AWS EC2 Apache, php, MySQL 설치 가이드  (2) 2024.06.08
AWS EC2 Node, express 및 pm2 설치  (1) 2024.06.08
[AWS] AL 2023 EBS 추가하기  (0) 2024.06.08