포트 변경
vsftpd
[root@JJuno ~]# vi /etc/vsftpd/vsftpd.conf
port_enable=YES
listen_port=2121
service vsftpd restart (CentOS 6)
systemctl restart vsftpd (CentOS 7)
xrdp
]# vi /etc/xrdp/xrdp.ini
port=342
service xrdp restart (CentOS 6)
systemctl restart xrdp.serviec (CentOS 7)
ssh
]# vi /etc/ssh/sshd_config
Port 2200
service sshd restart (CentOS 6)
systemctl restart sshd (CentOS 7)
rsh
]# netstat -anp | grep 514
tcp6 0 0 :::514 :::* LISTEN 1/systemd
unix 3 [ ] STREAM CONNECTED 28514 2377/master
(CentOS 6)
]# vi /etc/xinetd.d/rsh
disable=yes
]# service xinetd restart
(CentOS 7)
]# systemctl disable rsh.socket rlogin.socket rexec.socket
]# systemctl stop rsh.socket rlogin.socket rexec.socket
728x90
댓글