./categories/os
SSH PermitRootLogin no
SSH root 직접 로그인 금지
일반 계정 먼저 생성 후:
useradd admin && passwd admin
vi /etc/ssh/sshd_config
# PermitRootLogin no
systemctl restart sshd # 또는 service sshd restart
# 접속: ssh admin@host → su -
관련 링크: https://jhok.kr/2016/06/25/centos-7-root-%EC%A7%81%EC%A0%91-%EC%A0%91%EC%86%8D-%EB%A7%89%EA%B8%B0/
./comments