Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Administrators

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 09-30-2007, 08:22 PM
Active Member
 
Posts: 39
Default Change Port 22

As an security measure we change the ssh port from 22 to XXXX. When we did this the Zimbra mail server shows this message:

Message: system failure: exception during auth {RemoteManager: mailserver.xxxxxxx.com->zimbra@mailserver.xxxxxxxx.com:22}
Error code: service.FAILURE
Method: ZmCsfeCommand.prototype.invoke
Details:soap:Receiver

Can we change Zimbra setting the to our custom setting?
Reply With Quote
  #2 (permalink)  
Old 10-01-2007, 12:28 AM
Zimbra Consultant & Moderator
 
Posts: 19,581
Default

Quote:
Originally Posted by OfMacAndMen View Post
As an security measure we change the ssh port from 22 to XXXX. When we did this the Zimbra mail server shows this message:
If you are behind a router and this port isn't open to the outside world, this change doesn't matter. If you're not behind a router and this port is open to the outside world then changing it to another port makes not a blind bit of difference - a port scan of your system will find it in moments. This change adds not one bit of extra security to your system.

If you really want to change it (really, it's more trouble than it's worth) then search the forums, it's been covered a couple of times.
__________________
Regards


Bill
Reply With Quote
  #3 (permalink)  
Old 10-01-2007, 07:30 AM
Active Member
 
Posts: 39
Default Port 22

We run over 16 Linux server. Half had port 22 changed. We monitor the server's logs very closely. The servers that have the port 22 changed have 99% less brute force attacks.
Reply With Quote
  #4 (permalink)  
Old 10-01-2007, 05:06 PM
Moderator
 
Posts: 6,236
Default

zmprov ms server.domain.com zimbraRemoteManagementPort xxxx
Reply With Quote
  #5 (permalink)  
Old 04-07-2008, 01:30 AM
Active Member
 
Posts: 39
Default Upgrade to 5.0.4

Does this work in 5.0.4??
Reply With Quote
  #6 (permalink)  
Old 09-21-2008, 08:24 AM
Active Member
 
Posts: 39
Default Does this work in 5.0.9

We are receiving an error on the Server Status page.
Reply With Quote
  #7 (permalink)  
Old 09-21-2008, 10:59 AM
Moderator
 
Posts: 6,236
Default

Substitute your port number in the below instructions:

1. Check /etc/sshd_config and be sure it's set to 22 (or the port you're using)
2. stop/start/restart sshd
Code:
/etc/init.d/ssh restart
3. su - zimbra
4. Be sure zimbra's ssh port is set to 22 (or the port you're using)
Code:
zmprov ms server.domain.com zimbraRemoteManagementPort 22
5. Generate new ssh keys
Code:
cd /opt/zimbra/bin/
./zmsshkeygen
6. Deploy the keys
Code:
./zmupdateauthkeys
To test this, you can run the following command:
Quote:
ssh -vi .ssh/zimbra_identity -o strictHostKeyChecking=no zimbra@server.domain.com -p 22 (or the port you're using)
-Shouldn't prompt you for a password at this point...then check the admin console mail queues area/servers/certificates.
If you continue to get that error please see this doc for some more ideas Mail Queue Monitoring - Zimbra :: Wiki
Reply With Quote
  #8 (permalink)  
Old 09-22-2008, 04:36 AM
Moderator
 
Posts: 927
Default

When I first read this, I thought it was about port 25, SMTP, but then I noticed it was actually about SSH.

Opening SSH to the world on any port is a 'bad idea'.
If you need SSH access, go via a VPN. At the very least use a router to permit SSH access only for traffic originating from pre specified IP addresses.
Reply With Quote
  #9 (permalink)  
Old 09-22-2008, 07:56 AM
Trained Alumni
 
Posts: 123
Default

Quote:
Originally Posted by phoenix View Post
If you are behind a router and this port isn't open to the outside world, this change doesn't matter. If you're not behind a router and this port is open to the outside world then changing it to another port makes not a blind bit of difference - a port scan of your system will find it in moments. This change adds not one bit of extra security to your system.

If you really want to change it (really, it's more trouble than it's worth) then search the forums, it's been covered a couple of times.
This is somewhat dumb to say. As others here told, brute force attempts goes down 99-100% changing ssh port from 22 til 22400 (as i do). Logs are one mile long, which u don't want when ssh is at port 22.
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.