端口号更改

yum install openssh-server
yum list installd |grep ssh
firewall-cmd --zone=public --add-port=1234/tcp --permanent
firewall-cmd --reload
firewall-cmd --zone=public --query-port=1234/tcp
yum provides semanage
yum install policycoreutils-python
semanage port -l | grep ssh
semanage port -a -t ssh_port_t -p tcp 1234
semanage port -l | grep ssh
systemctl restart sshd.service

你可能感兴趣的:(ssh互信)