cyberpanel icon indicating copy to clipboard operation
cyberpanel copied to clipboard

[BUG] SSH port number keeps on adding in TCP IN & OUT Ports

Open irockbot opened this issue 1 year ago • 5 comments

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?

  1. In CP dashboard, go to security > ssh > enable root access
  2. Go to CSF section in cp.
  3. SSH Port number keeps on adding related to the number of logins. Screenshot 2023-04-17 192737

Operating system: Centos

CyberPanel version: 2.3.2, 2.3.3 and 2.3.4-dev

irockbot avatar Apr 17 '23 14:04 irockbot

You mean SSH port is auto added to csf upon login via root?

usmannasir avatar Apr 18 '23 06:04 usmannasir

Yes correct!

irockbot avatar Apr 18 '23 12:04 irockbot

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

shbs9 avatar Apr 18 '23 21:04 shbs9

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.

irockbot avatar Apr 19 '23 03:04 irockbot

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.

irockbot avatar May 04 '23 17:05 irockbot