Skip to Main Content

Infrastructure Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Unable to change ssh port to anything different than 22 on Linux Oracle 7.1

b50e7121-6052-463a-9ef2-0798e8a27b32Sep 28 2015 — edited Sep 30 2015

New oracle 7.1 install no changes what so ever.

Changed the ssh port in

/etc/ssh/sshd_conf

added the new port to the firewall

$ firewall-cmd --add-port 4567/tcp --permanent

and added the new file in /etc/firewalld/services/ssh.xml

Stopt and started sshd.service

the new port shows up but ...

rebooted but did not help

gave error

Sep 28 16:54:26 x systemd[1]: Stopping OpenSSH server daemon...

Sep 28 16:54:26 x systemd[1]: Starting OpenSSH server daemon...

Sep 28 16:54:26 x systemd[1]: Started OpenSSH server daemon.

Sep 28 16:54:26 x sshd[11307]: error: Bind to port 4567 on 0.0.0.0 failed: Permission denied.

Sep 28 16:54:26 x sshd[11307]: error: Bind to port 4567 on :: failed: Permission denied.

Sep 28 16:54:26 x systemd[1]: sshd.service: main process exited, code=exited, status=255/n/a

Sep 28 16:54:26 x systemd[1]: Unit sshd.service entered failed state.

Sep 28 16:54:38 x systemd[1]: Stopping OpenSSH server daemon...

Sep 28 16:54:38 x systemd[1]: Stopped OpenSSH server daemon.

Sep 28 16:57:38 x systemd[1]: Unit sshd.service cannot be reloaded because it is inactive.


I did not do chmod anywhere so no idea where the permission would be denied


When running

/usr/sbin/sshd -ddd

as root i can make external connections so firewall is definitly ok


thx a lot

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 28 2015
Added on Sep 28 2015
2 comments
3,232 views