I was trying to get capistrano set up to work well with glassfish, when
I ran into a SSH padding error. A quick google turned up issue 2747
(http://jira.codehaus.org/browse/JRUBY-2747), which looked pretty much
exactly like what I was getting. Sure enough, the test case listed there
failed the same way as in the bug on my computer.
I notice that that issue lists itself as fixed, though, so I wonder: Why
is it showing up again, and what should I do to fix it?
gems: jruby-openssl 0.3, net-ssh 2.0.8, jruby 1.1.7 (rev 8810) running
on ubuntu.
sshtest.rb:
require ‘rubygems’
require ‘net/ssh’
Net::SSH.start(“127.0.0.1”, “jacob”, :password => “######”) do |ssh|
result = ssh.exec!(“ls -l”)
puts result
end
jacob@jacobDesktop:~/scripts$ jruby sshtest.rb
/home/jacob/jruby/lib/ruby/gems/1.8/gems/net-ssh-2.0.8/lib/net/ssh/transport/packet_stream.rb:195:in
poll_next_packet': padding error, need 2565336562 block 16 (Net::SSH::Exception) from /home/jacob/jruby/lib/ruby/gems/1.8/gems/net-ssh-2.0.8/lib/net/ssh/transport/packet_stream.rb:85:in
next_packet’
from
/home/jacob/jruby/lib/ruby/gems/1.8/gems/net-ssh-2.0.8/lib/net/ssh/transport/packet_stream.rb:84:in
loop' from /home/jacob/jruby/lib/ruby/gems/1.8/gems/net-ssh-2.0.8/lib/net/ssh/transport/packet_stream.rb:84:in
next_packet’
from
/home/jacob/jruby/lib/ruby/gems/1.8/gems/net-ssh-2.0.8/lib/net/ssh/transport/session.rb:160:in
poll_message' from /home/jacob/jruby/lib/ruby/gems/1.8/gems/net-ssh-2.0.8/lib/net/ssh/transport/session.rb:155:in
loop’
from
/home/jacob/jruby/lib/ruby/gems/1.8/gems/net-ssh-2.0.8/lib/net/ssh/transport/session.rb:155:in
poll_message' from /home/jacob/jruby/lib/ruby/gems/1.8/gems/net-ssh-2.0.8/lib/net/ssh/transport/session.rb:140:in
next_message’
from
/home/jacob/jruby/lib/ruby/gems/1.8/gems/net-ssh-2.0.8/lib/net/ssh/authentication/session.rb:81:in
next_message' ... 10 levels... from /home/jacob/jruby/lib/ruby/gems/1.8/gems/net-ssh-2.0.8/lib/net/ssh/authentication/session.rb:60:in
authenticate’
from
/home/jacob/jruby/lib/ruby/gems/1.8/gems/net-ssh-2.0.8/lib/net/ssh.rb:186:in
`start’
from sshtest.rb:4
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email