Skip to menu

Server Admin

sshd port 변경

inkwang@gmail.com 2019.02.24 21:39 Views : 112

sshd port 변경 

 

1) vi /etc/ssh/sshd_config

port 2251

 

2) SELinux 추가

semanage port -a -t ssh_port_t -p tcp 2251

 

3) Firewall  설정

firewall-cmd --permanent --zone=public --add-port=2251/tcp

firewall-cmd --reload

 

4) systemctl restart sshd.service

Up