techblog

CENTOS_RHEL_SSH_PORT_BIND

Feb 15th, 2018
290
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.18 KB | None | 0 0
  1. yum install policycoreutils
  2. semanage port -a -t http_port_t -p tcp 34627
  3. semanage port -m -t http_port_t -p tcp 34627
  4. systemctl restart sshd
  5. netstat -tlpn| grep ssh
  6. ss -tlpn| grep ssh
Advertisement
Add Comment
Please, Sign In to add comment