From: Hal Fulton Date: 2004-07-20T23:56:11+09:00 Subject: Re: Net::SSH difficulties Jamis Buck wrote: > Hal, > > It looks like you're using an unpatched version of the OpenSSL module > for Ruby. One of the changes I submitted to that module was to allow > "blank" keys to be created, and initialized later. Previously, the key > constructors always required at least one parameter. > > Can you please verify that you are, indeed, using 1.8.2? (I assume you > mean, by 1.8.2, that you're using a CVS snapshot...?) When did you > install it? Could it be that you are using a version that is "old" > enough that it doesn't include the patch I submitted? ruby -v yields: ruby 1.8.2 (2004-07-08) [i686-linux] I think this was a nightly snapshot from a couple of weeks ago. I don't think I got it directly from CVS, but from the (presumably) auto-generated .tgz file. But that was on top of 1.8.1 -- is it possible that my install is screwed up somehow? FYI, I installed ssh via the gem. I downloaded the patch but decided I didn't need it. Here's a list of some related files with timestamps. What do you think? Thanks, Hal $ find /usr -name openssl* 2>/dev/null | grep ruby | xargs ls -ld -rwxr-xr-x 1 root root 168184 Aug 5 2003 /usr/lib/ruby/1.8/i386-linux-gnu/openssl.so drwxr-xr-x 2 root root 4096 Jan 26 15:40 /usr/lib/ruby/1.8/openssl -rw-r--r-- 1 root root 526 Jul 23 2003 /usr/lib/ruby/1.8/openssl.rb -rwxr-xr-x 1 root root 1492905 Feb 2 03:05 /usr/local/lib/ruby/1.8/i686-linux/openssl.so drwxr-xr-x 2 root root 4096 Jan 27 13:16 /usr/local/lib/ruby/1.8/openssl -rw-r--r-- 1 root root 526 Jul 23 2003 /usr/local/lib/ruby/1.8/openssl.rb -rw-r--r-- 1 root root 5464 Jul 19 23:33 /usr/local/lib/ruby/gems/1.8/gems/net-ssh-0.0.3/lib/net/ssh/openssl.rb drwxr-xr-x 3 root root 4096 Jan 26 15:40 /usr/share/doc/ruby-libs-1.8.0/ext/openssl drwxr-xr-x 3 1000 1000 4096 Feb 2 03:05 /usr/src/self/ruby-1.8.1/ext/openssl drwxr-xr-x 2 1000 1000 4096 Dec 24 2003 /usr/src/self/ruby-1.8.1/ext/openssl/lib/openssl -rw-r--r-- 1 1000 1000 526 Jul 23 2003 /usr/src/self/ruby-1.8.1/ext/openssl/lib/openssl.rb -rw-r--r-- 1 1000 1000 6827 Sep 13 2003 /usr/src/self/ruby-1.8.1/ext/openssl/openssl_missing.c -rw-r--r-- 1 1000 1000 3356 Sep 13 2003 /usr/src/self/ruby-1.8.1/ext/openssl/openssl_missing.h -rw-r--r-- 1 root root 41500 Feb 2 03:04 /usr/src/self/ruby-1.8.1/ext/openssl/openssl_missing.o -rwxr-xr-x 1 root root 1492905 Feb 2 03:05 /usr/src/self/ruby-1.8.1/ext/openssl/openssl.so drwxr-xr-x 2 1000 1000 4096 Dec 24 2003 /usr/src/self/ruby-1.8.1/sample/openssl drwxr-xr-x 3 103 nfsnobody 4096 Jul 8 14:37 /usr/src/self/ruby/ext/openssl drwxr-xr-x 2 103 nfsnobody 4096 Jul 8 14:00 /usr/src/self/ruby/ext/openssl/lib/openssl -rw-r--r-- 1 103 nfsnobody 526 Jul 23 2003 /usr/src/self/ruby/ext/openssl/lib/openssl.rb -rw-r--r-- 1 103 nfsnobody 7409 Jun 30 22:01 /usr/src/self/ruby/ext/openssl/openssl_missing.c -rw-r--r-- 1 103 nfsnobody 4108 Jun 30 22:01 /usr/src/self/ruby/ext/openssl/openssl_missing.h drwxr-xr-x 2 103 nfsnobody 4096 Jul 8 14:00 /usr/src/self/ruby/sample/openssl drwxr-xr-x 2 103 nfsnobody 4096 Jul 8 14:00 /usr/src/self/ruby/test/openssl