./categories/os
SSH 포트 변경
/etc/ssh/sshd_config
# Port 22
Port 10022
systemctl restart sshd # 또는 service sshd restart
# 방화벽도 새 포트 오픈 (firewalld/iptables)
# SELinux (RHEL/CentOS)
semanage port -a -t ssh_port_t -p tcp 10022
# 클라이언트
ssh -p 10022 user@host
# ~/.ssh/config
# Host myserver
# HostName example.com
# Port 10022
관련 링크: https://www.lesstif.com/pages/viewpage.action?pageId=20776114
./comments