problem sftp with openssh 4.3p2



I have installed Sunfreeware OpenSSL-0.98b but wanted to compile my own
OpenSSH and am getting problems with sftp and scp


Compiled with :-

root@hostB# ./configure --with-ssl-dir=/usr/local/ssl
--with-tcp-wrappers --with-pid-dir=/var/run --with-pam -with-ldflags=-ldl

-----blah blah

root@hostB# make package

-----blah blah

So i now have the solaris package created which i have added with :-

pkgadd -d OpenSSH-OpenSSH_4.3p2-Solaris-sparc.pkg

It barfs when it tries to start it, but then when i run sh
/etc/rc2.d/S98opensshd start it starts up fine.

Now ssh works fine and i can ssh from host A to host B.

Problem is sftp, or scp dont work.

root@hostB# ldd /usr/local/sbin/sshd
libdl.so.1 => /usr/lib/libdl.so.1
libpam.so.1 => /usr/lib/libpam.so.1
libresolv.so.2 => /usr/lib/libresolv.so.2
libcrypto.so.0.9.8 => /usr/local/ssl/lib/libcrypto.so.0.9.8
librt.so.1 => /usr/lib/librt.so.1
libz.so => /usr/local/lib/libz.so
libsocket.so.1 => /usr/lib/libsocket.so.1
libnsl.so.1 => /usr/lib/libnsl.so.1
libc.so.1 => /usr/lib/libc.so.1
libgcc_s.so.1 => /usr/local/lib/libgcc_s.so.1
libaio.so.1 => /usr/lib/libaio.so.1
libmp.so.2 => /usr/lib/libmp.so.2
/usr/platform/SUNW,UltraAX-i2/lib/libc_psr.so.1
root@hostB#


Below trying ssh, sftp and scp

root@hostA ~/Desktop/tmp
$ ssh -l user <hostB ip>

This is a private computer system and should only be accessed by
authorised users. If you do not have prior authorisation to access this
system you must disconnect immediately or face criminal prosecution for
attempting to gain confidential information through unauthorised access.


user@<hostB ip>'s password:
Last login: Fri Jun 23 14:12:31 2006 from 10.250.90.202
Sun Microsystems Inc. SunOS 5.8 Generic February 2000
user@hostB$


$ sftp user@<hostB ip>
Connecting to <host ip>...

This is a private computer system and should only be accessed by
authorised users. If you do not have prior authorisation to access this
system you must disconnect immediately or face criminal prosecution for
attempting to gain confidential information through unauthorised access.


user@<hostB ip>'s password:
Connection closed


$ scp LISA_doc2v2.pdf user@<host ip>:

This is a private computer system and should only be accessed by
authorised users. If you do not have prior authorisation to access this
system you must disconnect immediately or face criminal prosecution for
attempting to gain confidential information through unauthorised access.


user@<hostB ip>'s password:
ld.so.1: scp: fatal: libz.so: open failed: No such file or directory
Killed
lost connection


I can do a debug of sshd if you like ? but i couldnt see anything
obvious when i did this. Wondering if anyone has had similar problems.

This is on a Solaris 8 Machine with zlib 1.2.3 installed.

Cheers
_______________________________________________
sunmanagers mailing list
sunmanagers@xxxxxxxxxxxxxxx
http://www.sunmanagers.org/mailman/listinfo/sunmanagers