Hi, I installed ruby gem and again excuted the ruby file and got this error. c:/ruby/lib/ruby/site_ruby/1.8/net/ssh/transport/session.rb:88:in `initialize': Bad file descriptor - connect(2) (Errno::EBADF) from c:/ruby/lib/ruby/site_ruby/1.8/net/ssh/transport/session.rb:88:in `initialize' from c:/ruby/lib/ruby/1.8/timeout.rb:48:in `timeout' from c:/ruby/lib/ruby/1.8/timeout.rb:76:in `timeout' from c:/ruby/lib/ruby/site_ruby/1.8/net/ssh/transport/session.rb:87:in `initialize' from c:/ruby/lib/ruby/site_ruby/1.8/net/ssh/transport/services.rb:121:in `register_services' from c:/ruby/lib/ruby/gems/1.8/gems/needle-1.3.0/lib/needle/lifecycle/singleton.rb:42:in `call' from c:/ruby/lib/ruby/1.8/thread.rb:135:in `synchronize' from c:/ruby/lib/ruby/gems/1.8/gems/needle-1.3.0/lib/needle/lifecycle/singleton.rb:40:in `call' ... 19 levels... from c:/ruby/lib/ruby/gems/1.8/gems/needle-1.3.0/lib/needle/container.rb:107:in `define' from c:/ruby/lib/ruby/site_ruby/1.8/net/ssh/session.rb:97:in `initialize' from c:/ruby/lib/ruby/site_ruby/1.8/net/ssh.rb:47:in `start' from session.rb:7 Is the following program is right? or i am passing wrong no of arguments in start function. require 'net/ssh' session = Net::SSH.start( 'localhost' ) session.close Can you please provide me some small examples to start a session in local machine as well as in remote machine. Help Please!! Thanks for the swift responses. Dr Nic wrote: > Sampurna Mishra wrote: >> `require__': no such file to load -- needle (LoadError) > > needle is another gem you need to install. Unfortunately the setup.rb > process doesn't (seem) to look out for gem dependencies. > > After that, you should be good. I've used Net::SSH on windows. > > Nic -- Posted via http://www.ruby-forum.com/.