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

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 Display Modes
  #21 (permalink)  
Old 07-03-2009, 03:13 AM
Moderator
 
Posts: 5,806
Default

Are you logging into the server as root or another user prior to performing the 'su' ?
__________________
SplatNIX IT Services :: Innovation through Collaboration™


http://www.messagefortress.com
Reply With Quote
  #22 (permalink)  
Old 07-03-2009, 05:42 AM
Junior Member
 
Posts: 7
Default

Quote:
Originally Posted by uxbod View Post
Are you logging into the server as root or another user prior to performing the 'su' ?
I had to go
Code:
sudo -i u zimbra
because I am on ubuntu.
Reply With Quote
  #23 (permalink)  
Old 07-03-2009, 05:50 AM
Junior Member
 
Posts: 7
Default

Ok I have my ssh server set up on port 22.

I can log in as a regular user and the results would be
Code:
fshlampserver@mail:~/.ssh$ ssh -v -i ~/.ssh/ssh_host_rsa_key fshlampserver@mail.fshzimbra.lan -p 22
OpenSSH_4.7p1 Debian-8ubuntu1.2, OpenSSL 0.9.8g 19 Oct 2007
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug1: Connecting to mail.fshzimbra.lan [192.168.1.60] port 22.
debug1: Connection established.
debug1: identity file /home/fshlampserver/.ssh/ssh_host_rsa_key type -1
debug1: Remote protocol version 2.0, remote software version OpenSSH_4.7p1 Debian-8ubuntu1.2
debug1: match: OpenSSH_4.7p1 Debian-8ubuntu1.2 pat OpenSSH*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_4.7p1 Debian-8ubuntu1.2
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client aes128-cbc hmac-md5 none
debug1: kex: client->server aes128-cbc hmac-md5 none
debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<1024<8192) sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP
debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
debug1: Host 'mail.fshzimbra.lan' is known and matches the RSA host key.
debug1: Found key in /home/fshlampserver/.ssh/known_hosts:1
debug1: ssh_rsa_verify: signature correct
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey
debug1: Next authentication method: publickey
debug1: Trying private key: /home/fshlampserver/.ssh/ssh_host_rsa_key
debug1: read PEM private key done: type RSA
debug1: Authentication succeeded (publickey).
debug1: channel 0: new [client-session]
debug1: Entering interactive session.
debug1: Sending environment.
debug1: Sending env LANG = en_US.UTF-8
Last login: Fri Jul  3 06:12:54 2009 from mail.fshzimbra.lan
fshlampserver@mail:~$ exit
So I know that the ssh server i installed prior to installing zimbra is up and working.

However no matter what I try which were
1) generating keys (dsa by default) via the zimbra user commands as mention earlier in this thread
2) generating keys the normal way (both dsa and rsa)

I cant get the test connection done by the zimbra user. The ssh server that I am using looks for authorized_keys2 as opposed to authorized_keys so I change that file name in /opt/zimbra/.ssh and all should have been good I think...

But this is how the connection goes
Code:
zimbra@mail:~/.ssh$ ssh -v -i ~/.ssh/zimbra_identity zimbra@mail.fshzimbra.lan -p 22 
OpenSSH_4.7p1 Debian-8ubuntu1.2, OpenSSL 0.9.8g 19 Oct 2007
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug1: Connecting to mail.fshzimbra.lan [192.168.1.60] port 22.
debug1: Connection established.
debug1: identity file /opt/zimbra/.ssh/zimbra_identity type 2
debug1: Remote protocol version 2.0, remote software version OpenSSH_4.7p1 Debian-8ubuntu1.2
debug1: match: OpenSSH_4.7p1 Debian-8ubuntu1.2 pat OpenSSH*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_4.7p1 Debian-8ubuntu1.2
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client aes128-cbc hmac-md5 none
debug1: kex: client->server aes128-cbc hmac-md5 none
debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<1024<8192) sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP
debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
debug1: Host 'mail.fshzimbra.lan' is known and matches the RSA host key.
debug1: Found key in /opt/zimbra/.ssh/known_hosts:1
debug1: ssh_rsa_verify: signature correct
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey
debug1: Next authentication method: publickey
debug1: Offering public key: /opt/zimbra/.ssh/zimbra_identity
debug1: Authentications that can continue: publickey
debug1: No more authentication methods to try.
Permission denied (publickey).

UPDATE: on checking my auth log while running the connect command I see this appear
"Jul 3 08:08:14 mail sshd[6310]: User zimbra not allowed because account is locked"

Why is it locked and should it be unlocked (and how is this done) so that we can connect and get rid of the error in the zimbra web interface. I'm on ubuntu 8.04

Thanks.


UPDATE 1:
Ok from the post Mail Queue ssh error I was able to unlock the zimbra user and now everyting is honky dory for now.

Last edited by sefs : 07-03-2009 at 06:27 AM.
Reply With Quote
Reply


Thread Tools
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.

Zimbrablog.com




 

Search Engine Optimization by vBSEO 3.1.0