[SSH 설치 및 설정]

이강일·2023년 9월 19일

Services

목록 보기
2/2

System

OS         :     Kali Linux 2023-01
Kernel   :     6.3.0-kali1-amd64

Install

패키지 설치

 # apt-get install -y openssh-server

Preferences

포트포워딩

 # ufw allow ssh
 # ufw reload

또는

 # ufw allow 22/tcp
 # ufw reload

ufw 가 존재하지 않을 때

 # apt-get install -y ufw

ssh 환경 설정

  • /etc/ssh/sshd_config
 # vi /etc/ssh/sshd_config
 PermitRootLogin no
 MaxAuthTries 3
 MaxSessions 20

PermitRootLogin : 루트 로그인 가능 여부 정의
MaxAuthTries : 최대 인증 시도 횟수 정의
MaxSessions : 최대 접속 가능 세션 수 정의

Connect

 # ssh localhost

loopback 접속 가능한지 확인.

profile
열정 스크립터

0개의 댓글