Many thanks for your reply.

Unfortunately I have little computer programming knowledge.

I try to do what you write and send the follwing commands:

Net::SSH.start( HOST, USER, :password => PASS ) do|ssh|

ssh.exec('/bin/sh')
ssh.exec('cd Desktop')
ssh.exec('ls')

end

and other syntax like this

Net::SSH.start( HOST, USER, :password => PASS ) do|ssh|

ssh.exec('exec /bin/sh')
ssh.exec('cd Desktop')
ssh.exec('ls')

end

but nothing works

please how can I send these magic commands.

Best regards

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