/etc/init.d/ssh restart
혹은
service sshd restart으로 서비스를 재시작했어야 했는데
안되는게 사건의 발단이었음
==== AUTHENTICATING FOR org.freedesktop.systemd1.manage-units ===
Authentication is required to restart 'ssh.service'.
Authenticating as: Ubuntu (ubuntu)
Password:
자꾸 이게 뜨는 거임 근데 비번이 틀렸나벼 그래서
틀리면 밑에 있는게 뜸
그래서 밑에 있는 오류를 검색함
polkit-agent-helper-1: pam_authenticate failed: Authentication failure
==== AUTHENTICATION FAILED ===
Failed to restart sshd.service: Access denied
See system logs and 'systemctl status sshd.service' for details.
해결법이 나옴
해결법은
sudo passwd ubuntu
이거나
sudo passwd ( 자기가 설정한 닉네임 )
이거나
sudo passwd ec2-user
이거임
$ sudo passwd ubuntu (위 세개 중 다 해보셈) 난 우분투라 이거 했음
Changing password for user ec2-user.
New password:
Retype new password:
그 후
$ sudo service sshd restart
저 두 명령어를 입력하고
처음 명령어에서 패스워드 새로 입력하고,
재입력하면 끗!
'오류 기록함' 카테고리의 다른 글
VScode로 서버에 SSH 원격 접속하기 (1) | 2024.01.31 |
---|---|
Ssh timeout 무제한 (0) | 2023.10.05 |
com.android.volley:volley:1.1.1 오류 해결 정리 (0) | 2023.09.15 |