Thanks for the response. I'm not looking for you to solve *all* of my
problems, so no worries. Thanks for Capistrano... it's usefulness is
the reason I'm trying to get it to run on this HP-UX box.
Right now I have a work-around, basically making serial "system" calls
in monkey-patched versions of "run" and "put" (using ssh and scp).
As for the original problem, though, I took a look at the 'net-ssh'
library to see if that would work for me. But, I ran into what looks
like the same error.
After gem-installing 'net-ssh' v1.1.2, I ran this simple test script:
require 'rubygems'
require 'net/ssh'
Net::SSH.start( 'localhost' ) do |session|
shell = session.shell.open
# script what we want to do
shell.pwd
shell.cd "/"
shell.pwd
shell.exit
# give the above commands sufficient time to terminate
sleep 0.5
# display the output
$stdout.print shell.stdout while shell.stdout?
$stderr.puts "-- stderr: --"
$stderr.print shell.stderr while shell.stderr?
end
... Which generated a very similar error...
$ ruby net.rb
/app/local/ruby/1.8/lib/ruby/gems/1.8/gems/net-ssh-1.1.2/lib/net/ssh/
transport/session.rb:113:in `getpeername': Invalid argument -
getpeername(2) (Errno::EINVAL)
from /app/local/ruby/1.8/lib/ruby/gems/1.8/gems/net-ssh-1.1.2/
lib/net/ssh/transport/session.rb:113:in `peer'
from /app/local/ruby/1.8/lib/ruby/gems/1.8/gems/net-ssh-1.1.2/
lib/net/ssh/transport/kex/dh.rb:165:in `verify_server_key'
from /app/local/ruby/1.8/lib/ruby/gems/1.8/gems/net-ssh-1.1.2/
lib/net/ssh/transport/kex/dh.rb:232:in `exchange_keys'
from /app/local/ruby/1.8/lib/ruby/gems/1.8/gems/needle-1.3.0/
lib/needle/lifecycle/proxy.rb:60:in `__send__'
from /app/local/ruby/1.8/lib/ruby/gems/1.8/gems/needle-1.3.0/
lib/needle/lifecycle/proxy.rb:60:in `method_missing'
from /app/local/ruby/1.8/lib/ruby/gems/1.8/gems/net-ssh-1.1.2/
lib/net/ssh/transport/session.rb:188:in `exchange_keys'
from /app/local/ruby/1.8/lib/ruby/gems/1.8/gems/net-ssh-1.1.2/
lib/net/ssh/transport/session.rb:149:in `kexinit'
from /app/local/ruby/1.8/lib/ruby/gems/1.8/gems/net-ssh-1.1.2/
lib/net/ssh/transport/session.rb:107:in `initialize'
... 30 levels...
from /app/local/ruby/1.8/lib/ruby/gems/1.8/gems/net-ssh-1.1.2/
lib/net/ssh/session.rb:106:in `initialize'
from /app/local/ruby/1.8/lib/ruby/gems/1.8/gems/net-ssh-1.1.2/
lib/net/ssh.rb:47:in `new'
from /app/local/ruby/1.8/lib/ruby/gems/1.8/gems/net-ssh-1.1.2/
lib/net/ssh.rb:47:in `start'
from net.rb:4
I ran this with key authentication and without (using a password).
I'm starting to think that this might have something to do with the
hacked installation of Ruby 1.8.6 I've got on this machine (which I
struggled with just to get Mongrel running).
It might have something to do with the way HP-UX places libraries in
different directories from which most installers look for them. But,
usually I resolve these when the gems crap out on installation (which
didn't happen in this case).
I'm open for suggestions on what else to try. Otherwise, I'll keep
you posted on what shakes out.
Thanks,
Kyle
> smime.p7s
> 3KDownload