Subject: OpenSSL and OpenSSH on MIPS feedback and a couple of problems
To: None <tech-pkg@netbsd.org>
From: Georg Schwarz <georg.schwarz@freenet.de>
List: tech-pkg
Date: 03/26/2005 22:08:37
Hi,
some time ago someone asked about feedback on OpenSSL and OpenSSH on
MIPS. Here's mine for IRIX 5.3 on R4k:
OpenSSL 0.9.7f builds flawlessly except for this:
UX:ls: ERROR: Cannot access /usr/local/pkg/lib/libcrypto.so.300: No such
file or directory
UX:ls: ERROR: Cannot access /usr/local/pkg/lib/libcrypto.so.300.1: No
such file or directory
UX:ls: ERROR: Cannot access /usr/local/pkg/lib/libssl.so.300: No such
file or directory
UX:ls: ERROR: Cannot access /usr/local/pkg/lib/libssl.so.300.1: No such
file or directory
===> Registering installation for openssl-0.9.7f
pkg_create: can't stat `/usr/local/pkg/lib/libcrypto.so.300'
pkg_create: can't stat `/usr/local/pkg/lib/libcrypto.so.300.1'
pkg_create: can't stat `/usr/local/pkg/lib/libssl.so.300'
pkg_create: can't stat `/usr/local/pkg/lib/libssl.so.300.1'
maybe these files should just be removed from PLIST.irix?
What do things look like on IRIX 6?
One additional problem remains:
when building a package that depends on openssl, e.g. net/bind9,
compiling fails due to missing libcrypto.so.0.9.7. Indeed, the
respective link is not being created in work/.buildlink/lib, nor is the
one for libcrypto.0.9.7.so. Any ideas why?
openssh-3.9.1nb5 builds just fine. However, I have trouble using sshd.
After building a DSA test hostkey (with empty password) I start
/usr/local/pkg/sbin/sshd -D -h `pwd`/test -ddd -p 2222 -e -o "Protocol
2"
Now if I ssh on port 2222 as user schwarz into that machine I get
(output on the server):
....
debug2: input_userauth_request: try method keyboard-interactive
debug1: keyboard-interactive devs
debug1: auth2_challenge: user=schwarz devs=
debug1: kbdint_alloc: devices ''
debug2: auth2_challenge_start: devices
Failed keyboard-interactive for schwarz from 192.168.0.1 port 2749 ssh2
[this is where the client waits for the password]
[after entering the password:]
debug3: entering
debug3: : user not authenticated
Failed password for schwarz from 192.168.0.1 port 2749 ssh2
It look like sshd cannot check the password. Could it be the reason that
I am running shadow passwords on the machine?
When I run sshd the same way but as root, when a client connects the
daemon terminates like this before the client gets to the password
prompt:
...
debug1: read PEM private key done: type DSA
debug1: private host key: #0 type 2 DSA
debug1: inetd sockets after dupping: 3, 3
Connection from 192.168.0.1 port 2752
debug1: Client protocol version 2.0; client software version
OpenSSH_3.4p1 Debian 1:3.4p1-1.woody.3
debug1: match: OpenSSH_3.4p1 Debian 1:3.4p1-1.woody.3 pat OpenSSH*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_3.9p1
debug2: fd 3 setting O_NONBLOCK
debug2: Network child is on pid 20482
debug3: preauth child monitor started
debug3: entering
debug1: do_cleanup
Any idea what is going wrong here??? A permission problem maybe?
--
Georg Schwarz http://home.pages.de/~schwarz/
georg.schwarz@freenet.de +49 178 8545053