Running ssh on unreserved ports

Genes MailLists lists at sapience.com
Sun Feb 20 16:28:23 UTC 2011


On 02/20/2011 11:00 AM, Alex wrote:
> Hi,
> 
>>> 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.
>>
>>  Does this work for you (assumign 1234 is what you want to listen on)
>> semanage port -a -t ssh_port_t -p tcp 1234
> 
> This worked great, thanks.
> 
> Alex


 Glad to hear - I should also mention that this is very easy to do using
the selinux GUI manager as well.

  Click System->Administration->Selinux Managerment

  Click Network Ports

 (scroll down to see ssh - on port 22 - note the ssh_port_t)

  Click the Add button

  Add your port with type ssh_port_t



 Gene/





More information about the users mailing list