LiNuX
SSH Server 수신 포트 추가
freecatz
2021. 11. 30. 18:57
1. sshd 설정 파일 수정
root@FREECATZ.PE.KR:~# vi /etc/ssh/sshd_config
... 중략 ...
Port 22
Port 9022
... 중략 ...
위와 같이 '9022' 번 포트를 추가 한다.
2. ssh 재시작
root@FREECATZ.PE.KR:~# /etc/init.d/ssh restart
[ ok ] Restarting OpenBSD Secure Shell server: sshd.
또는
root@FREECATZ.PE.KR:~# service ssh restart
[ ok ] Restarting OpenBSD Secure Shell server: sshd.
또는
root@FREECATZ.PE.KR:~# systemctl restart ssh
[ ok ] Restarting OpenBSD Secure Shell server: sshd.
3. 참고 사항
운영체제 방화벽(iptables) 또는 물리 방화벽에서 해당 포트를 열어 주도록 한다.