how to change ssh port in RHEL 7.1
hi anyone knows how to change ssh port in RHEL 7.1 Minimal installation?
I know it need to install policycoreutils-python in centos,
but there is no package in the 7.1 biner dvd iso.
if I try to install the rpm download from website, it was endless dependencies :(
so can anyone tell me how to install semanage in RHEL 7.1 Minimal installation os and change ssh port?
really appreciate!
Responses
Hello
from the sshd_config man page:
" Port Specifies the port number that sshd(8) listens on. The default is 22. Multiple options of this type are permitted. See also ListenAddress."
Read the section of the sshd_config man page where Port is mentioned and the part just above where it gives you the SELinux command you need to permit a non-standard port.
For the policycoreutils-python package, search on the downloads page, for example: https://access.redhat.com/downloads/content/69/ver=/rhel---7/7.1/x86_64/packages
Hello, then consider changing your question to "How to change SELinux port without using semanage"
I have never done this, so cannot say more than this might be possible by coping an SELinux policy module from one system to another.
I suggest raise a support request and also read:
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
