[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Using Net SSH to issue command on remote windows XP

Saritha Yeddula

10/14/2008 6:04:00 AM

Hi,

I want to issue window's DOS commands like "dir, cp, del..."
on a remote Windows XP machine.
I have installed OPENSSH on the remote windows machine
and trying to use the Net SSH.
I cannot get any of the DOS commands to work on the remote machine.

Any help ????

Thanks
Saritha
--
Posted via http://www.ruby-....

4 Answers

Pokkai Dokkai

10/14/2008 6:56:00 AM

0

Saritha Yeddula wrote:
> Hi,
>
> I want to issue window's DOS commands like "dir, cp, del..."
> on a remote Windows XP machine.
> I have installed OPENSSH on the remote windows machine
> and trying to use the Net SSH.
> I cannot get any of the DOS commands to work on the remote machine.
>
> Any help ????
>
> Thanks
> Saritha

what is your source(current) machine is it linux or windows ?
--
Posted via http://www.ruby-....

Saritha Yeddula

10/14/2008 7:40:00 AM

0

Pokkai Dokkai wrote:
> Saritha Yeddula wrote:
>> Hi,
>>
>> I want to issue window's DOS commands like "dir, cp, del..."
>> on a remote Windows XP machine.
>> I have installed OPENSSH on the remote windows machine
>> and trying to use the Net SSH.
>> I cannot get any of the DOS commands to work on the remote machine.
>>
>> Any help ????
>>
>> Thanks
>> Saritha
>
> what is your source(current) machine is it linux or windows ?

My source/Current machine is Windows
--
Posted via http://www.ruby-....

Robert Dober

10/15/2008 10:11:00 AM

0

On Tue, Oct 14, 2008 at 5:33 PM, Saritha Yeddula
<syeddula@codegreennetworks.com> wrote:

Sure can
the only question is what shell you will use than! SSH is only the
transport layer, the application layer still is a different story.
I guess this is often forgotten when using it between 2 Linux boxes as
the application layers are so obviously compatible...

However if you installed openSSH with cygwin your shell should be bash
would this do? IIRC there is nothing DOS can do what bash cannot.

HTH
Robert

--=20
C'est v=E9ritablement utile puisque c'est joli.

Antoine de Saint Exup=E9ry

Saritha Yeddula

10/15/2008 8:59:00 PM

0

Robert Dober wrote:
> On Tue, Oct 14, 2008 at 5:33 PM, Saritha Yeddula
> <syeddula@codegreennetworks.com> wrote:
>
> Sure can
> the only question is what shell you will use than! SSH is only the
> transport layer, the application layer still is a different story.
> I guess this is often forgotten when using it between 2 Linux boxes as
> the application layers are so obviously compatible...
>
> However if you installed openSSH with cygwin your shell should be bash
> would this do? IIRC there is nothing DOS can do what bash cannot.
>
> HTH
> Robert
>
> --
> C'est v�ritablement utile puisque c'est joli.
>
> Antoine de Saint Exup�ry

I have done as quoted by Park.
My ssh.exec! is not recognized.
Here is the error I get.

Opened Connection to
10.10.12.21c:/ruby/lib/ruby/gems/1.8/gems/net-ssh-1.1.2/lib/net/ssh/session.rb:199:in
`method_missing'
: undefined method `exec!' for #<Net::SSH::Session:0x34ad4d8>
(NoMethodError)

--
Posted via http://www.ruby-....