|
View:
New views
4 Messages
—
Rating Filter:
Alert me
|
|
|
Problem with net-sshI'm working with net-ssh 2.0.11 and jruby 1.3.0. When running this
simple script: ======================= require 'rubygems' require 'net/ssh' Net::SSH.start('su-subdev01', 'wasuser', :verbose => :debug) do |ssh| output = ssh.exec!("hostname && uptime") puts output end ======================= I get this error: D, [2009-06-29T14:34:09.199000 #25078] DEBUG -- net.ssh.transport.session[ae]: establishing connection to su-subdev01:22 D, [2009-06-29T14:34:09.214000 #25078] DEBUG -- net.ssh.transport.session[ae]: connection established I, [2009-06-29T14:34:09.215000 #25078] INFO -- net.ssh.transport.server_version[b0]: negotiating protocol version D, [2009-06-29T14:34:09.216000 #25078] DEBUG -- net.ssh.transport.server_version[b0]: remote is `SSH-2.0-Sun_SSH_1.1' D, [2009-06-29T14:34:09.216000 #25078] DEBUG -- net.ssh.transport.server_version[b0]: local is `SSH-2.0-Ruby/Net::SSH_2.0.11 java' /usr/local/jruby_gems/gems/net-ssh-2.0.11/lib/net/ssh/transport/packet_stream.rb:63:in `peer_ip': invalid address string (ArgumentError) from /usr/local/jruby_gems/gems/net-ssh-2.0.11/lib/net/ssh/transport/session.rb:87:in `host_as_string' from /usr/local/jruby_gems/gems/net-ssh-2.0.11/lib/net/ssh/transport/algorithms.rb:213:in `prepare_preferred_algorithms!' from /usr/local/jruby_gems/gems/net-ssh-2.0.11/lib/net/ssh/transport/algorithms.rb:96:in `initialize' from /usr/local/jruby_gems/gems/net-ssh-2.0.11/lib/net/ssh/transport/session.rb:77:in `initialize' from /usr/local/jruby_gems/gems/net-ssh-2.0.11/lib/net/ssh.rb:179:in `start' from ./ssh.rb:5 It doesn't seem to matter what hostname I use. Thanks, Chris --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email |
|
|
Re: Problem with net-sshHi Chris,
On Mon, Jun 29, 2009 at 1:36 PM, Chris Evans<evans.chris@...> wrote: > I'm working with net-ssh 2.0.11 and jruby 1.3.0. When running this > simple script: > ======================= > require 'rubygems' > require 'net/ssh' > Net::SSH.start('su-subdev01', 'wasuser', :verbose => :debug) do |ssh| > output = ssh.exec!("hostname && uptime") > puts output > end > ======================= > I get this error: <snip> Can you try with the latest JRuby (1.3.1) and jruby-openssl (0.5.1)? Some bugs were recently fixed in this area. Cheers, /Nick --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email |
|
|
Re: Problem with net-sshThat helped, I got farther along. I now get this error:
D, [2009-06-29T15:33:55.594000 #26002] DEBUG -- net.ssh.transport.session[ae]: establishing connection to su-ecomappprd01:22 D, [2009-06-29T15:33:55.614000 #26002] DEBUG -- net.ssh.transport.session[ae]: connection established I, [2009-06-29T15:33:55.615000 #26002] INFO -- net.ssh.transport.server_version[b0]: negotiating protocol version D, [2009-06-29T15:33:55.626000 #26002] DEBUG -- net.ssh.transport.server_version[b0]: remote is `SSH-2.0-Sun_SSH_1.1.1' D, [2009-06-29T15:33:55.627000 #26002] DEBUG -- net.ssh.transport.server_version[b0]: local is `SSH-2.0-Ruby/Net::SSH_2.0.11 java' D, [2009-06-29T15:33:55.881000 #26002] DEBUG -- tcpsocket[ba]: read 456 bytes D, [2009-06-29T15:33:55.883000 #26002] DEBUG -- tcpsocket[ba]: received packet nr 0 type 20 len 412 I, [2009-06-29T15:33:55.883000 #26002] INFO -- net.ssh.transport.algorithms[bc]: got KEXINIT from server I, [2009-06-29T15:33:55.885000 #26002] INFO -- net.ssh.transport.algorithms[bc]: sending KEXINIT D, [2009-06-29T15:33:55.887000 #26002] DEBUG -- tcpsocket[ba]: queueing packet nr 0 type 20 len 508 /usr/local/jruby_gems/gems/net-ssh-2.0.11/lib/net/ssh/buffered_io.rb:98:in `send_pending': Unknown error - Broken pipe (SystemCallError) from /usr/local/jruby_gems/gems/net-ssh-2.0.11/lib/net/ssh/buffered_io.rb:110:in `wait_for_pending_sends' from /usr/local/jruby_gems/gems/net-ssh-2.0.11/lib/net/ssh/transport/packet_stream.rb:108:in `send_packet' from /usr/local/jruby_gems/gems/net-ssh-2.0.11/lib/net/ssh/transport/session.rb:217:in `send_message' from /usr/local/jruby_gems/gems/net-ssh-2.0.11/lib/net/ssh/transport/algorithms.rb:162:in `send_kexinit' from /usr/local/jruby_gems/gems/net-ssh-2.0.11/lib/net/ssh/transport/algorithms.rb:118:in `accept_kexinit' from /usr/local/jruby_gems/gems/net-ssh-2.0.11/lib/net/ssh/transport/session.rb:186:in `poll_message' from /usr/local/jruby_gems/gems/net-ssh-2.0.11/lib/net/ssh/transport/session.rb:164:in `loop' from /usr/local/jruby_gems/gems/net-ssh-2.0.11/lib/net/ssh/transport/session.rb:164:in `poll_message' from /usr/local/jruby_gems/gems/net-ssh-2.0.11/lib/net/ssh/transport/session.rb:201:in `wait' from /usr/local/jruby_gems/gems/net-ssh-2.0.11/lib/net/ssh/transport/session.rb:199:in `loop' from /usr/local/jruby_gems/gems/net-ssh-2.0.11/lib/net/ssh/transport/session.rb:199:in `wait' from /usr/local/jruby_gems/gems/net-ssh-2.0.11/lib/net/ssh/transport/session.rb:78:in `initialize' from /usr/local/jruby_gems/gems/net-ssh-2.0.11/lib/net/ssh.rb:179:in `start' from ./ssh.rb:3 Heres the operating environment: [ecomm@su-subprd01 : scripts] $ jruby -v jruby 1.3.1 (ruby 1.8.6p287) (2009-06-15 2fd6c3d) (Java HotSpot(TM) Client VM 1.5.0_06) [x86-java] [ecomm@su-subprd01 : scripts] $ jruby -S Gem list net-ssh jruby: No such file, directory, or command -- Gem [ecomm@su-subprd01 : scripts] $ jruby -S gem list net-ssh *** LOCAL GEMS *** net-ssh (2.0.11, 2.0.4) $ uname -a SunOS su-subprd01 5.10 Generic_118855-36 i86pc i386 i86pc On Mon, Jun 29, 2009 at 2:46 PM, Nick Sieger<nicksieger@...> wrote: > Hi Chris, > > On Mon, Jun 29, 2009 at 1:36 PM, Chris Evans<evans.chris@...> wrote: >> I'm working with net-ssh 2.0.11 and jruby 1.3.0. When running this >> simple script: >> ======================= >> require 'rubygems' >> require 'net/ssh' >> Net::SSH.start('su-subdev01', 'wasuser', :verbose => :debug) do |ssh| >> output = ssh.exec!("hostname && uptime") >> puts output >> end >> ======================= >> I get this error: > > <snip> > > Can you try with the latest JRuby (1.3.1) and jruby-openssl (0.5.1)? > Some bugs were recently fixed in this area. > > Cheers, > /Nick > > --------------------------------------------------------------------- > To unsubscribe from this list, please visit: > > http://xircles.codehaus.org/manage_email > > > --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email |
|
|
Re: Problem with net-sshOn Mon, Jun 29, 2009 at 2:49 PM, Chris Evans<evans.chris@...> wrote:
> That helped, I got farther along. I now get this error: > ... > I, [2009-06-29T15:33:55.885000 #26002] INFO -- > net.ssh.transport.algorithms[bc]: sending KEXINIT > D, [2009-06-29T15:33:55.887000 #26002] DEBUG -- tcpsocket[ba]: > queueing packet nr 0 type 20 len 508 > /usr/local/jruby_gems/gems/net-ssh-2.0.11/lib/net/ssh/buffered_io.rb:98:in > `send_pending': Unknown error - Broken pipe (SystemCallError) > from /usr/local/jruby_gems/gems/net-ssh-2.0.11/lib/net/ssh/buffered_io.rb:110:in > `wait_for_pending_sends' Hmm, seems like it could be an IO issue or an SSL issue. Can you file a bug with some instructions to reproduce it? - Charlie --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email |
| Free embeddable forum powered by Nabble | Forum Help |