CyberPanel Community

ClosedUnable to change SSH port on Cyberpanel 2.3

Bp
Blade pif #1

Hello,

I can not change the SSH port on Cyberpanel 2.3
Virtualization: openvz
Operating System: CentOS Linux 7 (Core)

When saving system showing it is saved, but port is not changed and going to ither menu and back to Secure SSH port is again 22

Regards

2 replies
Bp
Blade pif #3

I found the solution by myself looking at the cybepanel github sourcode.

Cyberpanel look in the file: /etc/ssh/sshd_config for the line: Port xxxx
If the line is missing in this file, like it was in my case, the put in the line : Port 22 and save it

After that you can change it again in cyberpanel and it will be saved in file and also in firewall

Sign in to reply