job/linux
root 계정 ssh접속 안되게
시스템엔지니어
2018. 8. 31. 17:38
root 계정 ssh 접속 안되게끔
vi /etc/ssh/sshd_config
열어서 PermitRootLogin no
vi /etc/pam.d/su
열어서
32비트는 auth required /lib/security/pam_wheel.so debug group=wheel
64비트는 auth required /lib64/security/pam_wheel.so debug group=wheel
넣어주고
vi /etc/group
wheel 그룹에다가 수권한 획들할 계정 넣어준다.