Centos7新装系统sshd安全设置

firewall-cmd --zone=public --add-port=3001/tcp --permanent
firewall-cmd --reload
sed -i  's/#Port 22/Port 3001/g' /etc/ssh/sshd_config
service sshd restart