changing ssh Port default in ispconfig

Discussion in 'Installation/Configuration' started by bosei, Nov 22, 2006.

  1. bosei

    bosei Member

    Can anyone help. In the interest of reducing the number of ssh probes my server has been configured to allow ssh on a non default port.

    Is there a way to change this default of 22 in ISPConfig?

    bosei
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    SSH is not configured in ISPConfig. You can change the SSH port in the file /etc/sshd/sshd_config (The config file name may defer a bit, depending on your linux distribution).
     
  3. bosei

    bosei Member

    Hi Till, thanks for reply. I think my question is not clear. I have changed default of port 22 to e.g. 1234 in sshd.conf. I am contemplating using ispconfig firewall and turning of default Fedora fw.

    When using default Fedora fw I can allow port 1234 and close 22. When I do the same in ispconfig fw it says not allowed.

    Cheers
    bosei
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    Have you opened the port for tcp and udp in the ISPConfig firewall?
     
  5. rootnovato

    rootnovato New Member

    I changed the ssh port in my sshd_config file just after installed my CentOS server, and after that, I installed ISPconfig...

    But in ISPconfig firewall the ssh port is 22 and cant make any change to it throught the web interface...

    Is there any other way that I can try to change that?? (I want to close the port 22, so is useless for me).
     
  6. till

    till Super Moderator Staff Member ISPConfig Developer

    If you dont run a service on port 22, its not nescessary to close it as the server will not accept connections on this port then.
     
  7. ethanlifka

    ethanlifka New Member

    RE: How can I Close port 22

    I too am trying to close port 22.

    I know that the service wont use it and I know that ispconfig wont change it, but I still would like to delete it from ispconfigs firewall list and make sure that the firewall will not allow anyone to connect to that port.
     
  8. falko

    falko Super Moderator Howtoforge Staff

    That's not possible without modifying the code in /root/ispconfig/scripts/lib/config.lib.php.
     

Share This Page