Sshd Configuration: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
No edit summary
No edit summary
Line 15: Line 15:
</pre>
</pre>


==Changing the Default Port on a selinux System==
==Changing the Default Port on a SELinux System==
 
If SELinux is enable, you have to tell SELinux about this change:
 
<pre>
semanage port -a -t ssh_port_t -p tcp 12345
</pre>
 


=Change the Network Interface to Listen On=
=Change the Network Interface to Listen On=

Revision as of 00:26, 6 January 2016

Internal

Overview

Changing the Default Port

Uncomment and/or update the default "Port" value in /etc/ssh/sshd_config:

#Port 22
Port 12345

Changing the Default Port on a SELinux System

If SELinux is enable, you have to tell SELinux about this change:

semanage port -a -t ssh_port_t -p tcp 12345


Change the Network Interface to Listen On