hi alex,

> I'm running RH6.0 behind a firewall. I have installed SOCKS5 to
> communicate through a firewall, which seems to forward my FTP connection
> without of problem.  However, when I try to run SSH 1.2.27 with the
> runsocks command I get the following error message.
> 
> ssh:error in loading shared libraries: libsock5_sh_so: cannot open shared
> object file: no such file or directory.

runsocks is a shell script, what does it set SOCKS5_SHLIB_RUNPATH to &
does that match the shared lib location?
i don't use runsocks for ssh, i compile in socks5 support as
described below.
  
> I tried envoking the --with-socks, and --with-sock5 flag during SSH
> configuration but I got the same result.  Is there anyway to tell ssh
> where the library is explicitly.  I found the library in the
> /usr/local/lib/. directory.

does the configure/compilation succeed?

bash# ./configure --with-socks5="-L/opt/local/lib -lsocks5"

works fine when the socks archive lib is in /opt/local/lib.

& then
bash# ssh -v foo.com
sends the connection out via the socks5 server if required & you see the 
connection details in the socks5 logs.
Mar 23 08:30:40 foo.uniq.com.au Socks5[16791]: TCP Connection Request: Connect 
(fred.uniq.com.au:1023 to foo.com:22)   
Mar 23 08:30:40 foo.uniq.com.au Socks5[16791]: TCP Connection Established: Connect 
(fred.uniq.com.au:1023 to foo.com:22)  
Mar 23 08:30:45 foo.uniq.com.au Socks5[16791]: TCP Connection Terminated: Normal 
(fred.uniq.com.au:1023 to foo.com:22) : 523 bytes out, 351 bytes in

hope this helps,
pauline

Reply via email to