Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 2 > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 22nd November 2006, 08:30
bosei bosei is offline
Member
 
Join Date: Aug 2005
Posts: 38
Thanks: 0
Thanked 0 Times in 0 Posts
Question changing ssh Port default in ispconfig

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
Reply With Quote
Sponsored Links
  #2  
Old 22nd November 2006, 11:22
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,769
Thanks: 840
Thanked 5,609 Times in 4,420 Posts
Default

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).
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 22nd November 2006, 20:02
bosei bosei is offline
Member
 
Join Date: Aug 2005
Posts: 38
Thanks: 0
Thanked 0 Times in 0 Posts
Arrow

Quote:
Originally Posted by till
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).
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
Reply With Quote
  #4  
Old 22nd November 2006, 20:03
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,769
Thanks: 840
Thanked 5,609 Times in 4,420 Posts
Default

Have you opened the port for tcp and udp in the ISPConfig firewall?
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #5  
Old 19th March 2008, 04:35
rootnovato rootnovato is offline
Junior Member
 
Join Date: Mar 2008
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by till
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).
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).
Reply With Quote
  #6  
Old 19th March 2008, 11:32
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,769
Thanks: 840
Thanked 5,609 Times in 4,420 Posts
Default

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.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #7  
Old 23rd May 2009, 00:38
ethanlifka ethanlifka is offline
Junior Member
 
Join Date: Aug 2008
Posts: 29
Thanks: 0
Thanked 6 Times in 4 Posts
Default 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.
Reply With Quote
  #8  
Old 23rd May 2009, 15:01
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,747 Times in 2,578 Posts
 
Default

That's not possible without modifying the code in /root/ispconfig/scripts/lib/config.lib.php.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
ISPConfig running on default web server (port 80) geek.de.nz Installation/Configuration 3 31st March 2008 11:32
Default Mail scan settings for new users timehost Installation/Configuration 3 26th October 2007 13:05
SSH port other than default 22 Quinton HOWTO-Related Questions 6 23rd November 2006 23:08
How to install BFD (Brute Force Detection) domino Tips/Tricks/Mods 9 31st March 2006 23:40
Virtual Users And Domains With Postfix, Courier And MySQL (+ SMTP-AUTH, Quota, SpamAs pontifex HOWTO-Related Questions 2 26th October 2005 18:54


All times are GMT +2. The time now is 07:57.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.