modify sshd port number

Rick Stevens ricks at nerd.com
Wed Aug 26 19:10:56 UTC 2009


pete b. wrote:
> OS: FC-10
> If the sshd_config port number is changed and then sshd restarted, I get
> an error from SElinux.  SElinux troubleshoot told me to do the following
> (which
> results in another problem).  Is this saying the port number I've chosen
> may have a conflict or just the correct semanage options must be used.
> SELinux popup: AVC denial
> 
> [root at 128 sysconfig]# semanage port -a -t PORT_TYPE -p PROTOCOL 8888
> /usr/sbin/semanage: Protocol udp or tcp is required

Uh, "man semanage" would point you in the right direction.  If you want
to use port 8888 for TCP, then:

	# semanage -a port -t ssh_port_t -p tcp 8888

You can view the current port listings via:

	# semanage port -l

----------------------------------------------------------------------
- Rick Stevens, Systems Engineer                      ricks at nerd.com -
- AIM/Skype: therps2        ICQ: 22643734            Yahoo: origrps2 -
-                                                                    -
-     Veni, Vidi, VISA:  I came, I saw, I did a little shopping.     -
----------------------------------------------------------------------




More information about the fedora-list mailing list