If you've tried to run sshd on port 443 on RHEL7 / CentOS7 server with selinux enabled you're probably familiar with these errors:
sshd[834]: error: Bind to port 443 on 0.0.0.0 failed: Permission denied.
sshd[834]: error: Bind to port 443 on :: failed: Permission denied.
ValueError: Port tcp/443 already defined
ValueError: Port tcp/443 is defined in policy, cannot be deleted
Solution:
yum install policycoreutils-python
semanage port -m -t ssh_port_t -p tcp 443
firewall-cmd --permanent --zone=public --add-port=443/tcp
firewall-cmd --reload
echo "Port 22" >>/etc/ssh/sshd_config
echo "Port 443" >>/etc/ssh/sshd_config
systemctl restart sshd.service
스포츠토토티비
ReplyDelete스포츠중계
Hi my friend! I wish to say that this post is awesome, great written and include almost all significant infos.
배트맨토토
ReplyDelete토토사이트
Hi there, I enjoy reading all of your post. I wanted to write a little comment to support you.
스포츠토토
ReplyDelete토토사이트
Hello, it's my first go to see of this weblog; this blog includes awesome and truly excellent material for readers.