πμ 보보μ/μμ€ν
보μ
μμ€ν 보μ - SSH root μ격 μ μ μ°¨λ¨ μ μ± μ€μ (/etc/ssh/sshd_config)
Janger
2023. 11. 10. 17:50
728x90
SSH root μ격 μ μ μ°¨λ¨ μ μ± μ€μ (/etc/ssh/sshd_config)
κΈ°μ‘΄ "PermitRootLogin yes"λ₯Ό "PermitRootLogin no"λ‘ μμ νλ€.
# vim /etc/ssh/sshd_config
# Authentication
PermitRootLogin no
μ€μ μ΄ μλ£νμλ€λ©΄ μλΉμ€λ₯Ό μ¬μμνλ€.
service ssh restart
μ μ± μ μ€μ νκΈ° μ΄μ (PermitRootLogin yes)
root@kali:~/Desktop# ssh root@localhost
root@localhost's password:
Linux kali 3.14-kali1-686-pae #1 SMP Debian 3.14.5-1kali1 (2014-06-07) i686
The programs included with the Kali GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Kali GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Fri Nov 10 17:42:20 2023 from localhost
root@kali:~#
μ μμ μΌλ‘ root λ‘κ·ΈμΈμ΄ λλ€.
μ μ± μ μ€μ ν ν(PermitRootLogin no)
root@kali:~# ssh root@localhost
root@localhost's password:
Permission denied, please try again.
root@localhost's password:
Permission denied, please try again.
λΉλ°λ²νΈλ₯Ό λ§κ² μ λ ₯ν΄λ κΆνμ΄ κ±°λΆλμλ€κ³ λμ¨λ€.
728x90