I
Ice Man
Hi,
i have a very stupid and annoying problem;/ I wrote a simple script:
require 'rubygems'
require 'net/ssh'
Net::SSH.start('host',:username => 'user',assword => 'pass') do
|session|
shell=session.shell.open
shell.dir
shell.exit
$stdout.print shell.stdout while shell.stdout?
$stderr.puts "-- stderr: --"
$stderr.print shell.stderr while shell.stderr?
end
All the time I have the same error:
c:/ruby/lib/ruby/gems/1.8/gems/net-ssh-2.0.4/lib/net/ssh.rb:195:in
`start': Net::SSH::AuthenticationFailed
I tried a lot of diffrent script with ssh, but all the time I have still
the same error
Any suggestions what's wrong ??
THX
i have a very stupid and annoying problem;/ I wrote a simple script:
require 'rubygems'
require 'net/ssh'
Net::SSH.start('host',:username => 'user',assword => 'pass') do
|session|
shell=session.shell.open
shell.dir
shell.exit
$stdout.print shell.stdout while shell.stdout?
$stderr.puts "-- stderr: --"
$stderr.print shell.stderr while shell.stderr?
end
All the time I have the same error:
c:/ruby/lib/ruby/gems/1.8/gems/net-ssh-2.0.4/lib/net/ssh.rb:195:in
`start': Net::SSH::AuthenticationFailed
I tried a lot of diffrent script with ssh, but all the time I have still
the same error
Any suggestions what's wrong ??
THX