[Linux]Rocky Linux에 ssh 접속하기

Rocky Linux 9를 설치할 때 root 패스워드를 설정하는 화면에서 “Allow root SSH login with password”를 체크하지 않으면, ssh 접속을 시도할 때 “Password Authentication Failed” 오류가 발생합니다.
Allow root ssh login with password
Password Authentication Failed
 
sshd 데몬의 설정 파일(/etc/ssh/sshd_config)을 아래와 같이 수정해야 Putty, SecureCRT나 MobaXterm 등을 통해 ssh 접속이 가능해 집니다. 3개 지시자를 찾아 주석처리(#)를 삭제하고 할당된 값을 “yes”로 설정한 후 sshd 데몬을 재시작합니다.

[root@rocky9u2 ~]# vi /etc/ssh/sshd_config
PermitRootLogin yes PubkeyAuthentication yes PasswordAuthentication yes
[root@rocky9u2 ~]# systemctl restart sshd

마지막으로 OS 방화벽(firewalld 데몬)이 활성화되어 있다면,
firewalld 데몬 설명과 firewall-cmd 명령어의 사용법를 참고해서 ssh 서비스가 등록되어 있는지 확인하고,
등록되어 있지 않다면 등록하시면 됩니다.



함께 읽어보면 좋은 Contents

You may also like...

답글 남기기

이메일 주소는 공개되지 않습니다. 필수 필드는 *로 표시됩니다