Running ssh on unreserved ports

Genes MailLists lists at sapience.com
Fri Feb 18 21:26:11 UTC 2011


On 02/18/2011 04:07 PM, Alex wrote:
> Hi,
> 
> I'd like to run an ssh server as root on a port greater than 1024
> instead of the normal 22 but selinux doesn't seem to like that. How
> can I get around that?
> 
> I'd like to move it to a higher port to avoid the normal doorknob
> rattling that occurs with ssh running on a public server.
> 
> Thanks,
> Alex

  Does this work for you (assumign 1234 is what you want to listen on)


semanage port -a -t ssh_port_t -p tcp 1234

 g/


More information about the users mailing list