Hi list,

Anyone have experience in connecting to OpenSSH daemon running on FreeBSD
with apache sshd?
I have tested with all kind of linux distributions and it was working fine.
One difference I noticed in FreeBSD is that remote root is disabled by
default, so one has to change to "PermitRootLogin yes". But I still get
authentication error when trying to log in with apache ssh.

This is what my code does:

session = client.connect(userName, address, 22).await().getSession();
session.addPasswordIdentity(password);
session.auth().await(maxWait, maxWaitUnit);


And the log


22:00:41.121 [qtp312695952-18] INFO  o.a.s.c.session.ClientSessionImpl -
Start flagging packets as pending until key exchange is done
22:00:41.455 [sshd-SshClient[3e259ec]-nio2-thread-1] WARN
 o.a.s.c.k.AcceptAllServerKeyVerifier - Server at /192.168.122.112:22
presented unverified DSA key:
d0:0a:43:13:57:85:d0:d2:a9:d8:5f:98:66:b9:b7:41
22:00:41.462 [sshd-SshClient[3e259ec]-nio2-thread-1] INFO
 o.a.s.c.session.ClientSessionImpl - Dequeing pending packets
22:00:41.584 [sshd-SshClient[3e259ec]-nio2-thread-3] INFO
 o.a.s.c.s.ClientUserAuthServiceNew - Received SSH_MSG_USERAUTH_FAILURE
22:00:41.600 [sshd-SshClient[3e259ec]-nio2-thread-1] INFO
 o.a.s.c.a.UserAuthKeyboardInteractive - Received
22:00:41.609 [sshd-SshClient[3e259ec]-nio2-thread-2] INFO
 o.a.s.c.a.UserAuthKeyboardInteractive - Received
22:00:41.618 [sshd-SshClient[3e259ec]-nio2-thread-3] INFO
 o.a.s.c.a.UserAuthKeyboardInteractive - Received

The strange thing is that the password is right and nothing in the server's
auth.log

Best regards,
Laszlo


-- 

EOF

Reply via email to