cyberpanel
cyberpanel copied to clipboard
[BUG] SSH port number keeps on adding in TCP IN & OUT Ports
Describe the bug SSH Port number keeps on adding to the TCP IN & OUT Ports in CSF whenever we login root SSH through command and SFTP.
To Reproduce What steps did you take when the issue occurred?
- In CP dashboard, go to security > ssh > enable root access
- Go to CSF section in cp.
- SSH Port number keeps on adding related to the number of logins.
Operating system: Centos
CyberPanel version: 2.3.2, 2.3.3 and 2.3.4-dev
You mean SSH port is auto added to csf upon login via root?
Yes correct!
Cant reproduce this i tried with port 22 and after changing port as well but I cant reproduce this @irockbot can you give me your server access
I just found that i didn't change default port 22 in this path /usr/local/CyberCP/WebTerminal/CPWebSocket.py. i did it and restarted cp. Now this issue resolved, no more addition.
this issue is again coming. I found out that once you enable root access under security >ssh section. This ssh port number auto adding in csf TCP IN and OUT section. I have tested in other cp installation too.