OS : Kali Linux 2023-01
Kernel : 6.3.0-kali1-amd64
# apt-get install -y openssh-server
# ufw allow ssh
# ufw reload
또는
# ufw allow 22/tcp
# ufw reload
ufw 가 존재하지 않을 때
# apt-get install -y ufw
# vi /etc/ssh/sshd_config
PermitRootLogin no
MaxAuthTries 3
MaxSessions 20
PermitRootLogin : 루트 로그인 가능 여부 정의
MaxAuthTries : 최대 인증 시도 횟수 정의
MaxSessions : 최대 접속 가능 세션 수 정의
# ssh localhost
loopback 접속 가능한지 확인.