Nemanja Corlija
2006-Apr-16 12:18 UTC
[Net-ssh-users] Is there some minimum required version of sshd?
Hello all,
I have a somewhat strange problem with net-ssh/sftp script.
Script in question copies some files from local disk to remote
servers, server by server. Strange thing is that everything works fine
on 7 out of 8 servers. That one servers fails every time with this
same error. Since all servers are a bit different when it comes to
versions of OS(Fedora) and installed software I was wondering if there
is some requirement on version of sshd?
Or if there are some specific versions that are known not to work well
with net-ssh.
I''ve successfully read the contents of remote directory on that same
Net::SFTP::Session before calling mkdir(). But on mkdir() I got this
error:
C:/ruby/lib/ruby/gems/1.8/gems/net-sftp-1.1.0/lib/net/sftp/operations/abstract.rb:78:in
`do_status'': Net::SFTP::Operations::StatusException (4,
"Failure")
Net::SFTP::Operations::StatusException (4, "Failure"))
from
C:/ruby/lib/ruby/gems/1.8/gems/net-sftp-1.1.0/lib/net/sftp/session.rb:221:in
do_status''
from C:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in
`to_proc''
from
C:/ruby/lib/ruby/gems/1.8/gems/net-sftp-1.1.0/lib/net/sftp/protocol/01/impl.rb:92:in
`call_on_status''
from
C:/ruby/lib/ruby/gems/1.8/gems/net-sftp-1.1.0/lib/net/sftp/protocol/03/impl.rb:37:in
`do_status''
from
C:/ruby/lib/ruby/gems/1.8/gems/net-sftp-1.1.0/lib/net/sftp/protocol/01/impl.rb:189:in
`dispatch''
from
C:/ruby/lib/ruby/gems/1.8/gems/net-sftp-1.1.0/lib/net/sftp/protocol/driver.rb:189:in
`do_data''
from C:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in
`to_proc''
from
C:/ruby/lib/ruby/gems/1.8/gems/net-ssh-1.0.9/lib/net/ssh/connection/channel.rb:496:in
`callback''
... 10 levels...
from C:/ruby/lib/ruby/gems/1.8/gems/net-ssh-1.0.9/lib/net/ssh.rb:47:in
`start''
from site.rb:40:in `copy_site''
from site.rb:153
from site.rb:151
BTW. I''m on Win2000 with ruby 1.8.4 and all gems are up-to-date.
P.S. How do I find out what version of sshd I''m running? Would that be
the same as ssh version?
--
Nemanja Corlija <chorlya at gmail.com>