From: Carl Youngblood Date: 2004-10-08T14:54:38+09:00 Subject: net-ssh help Hello, I'm trying to use net-ssh for the first time and having some trouble. Any help would be greatly appreciated. In a simple script I'm running with the first few lines like so: Net::SSH.start('myhost, 'user', 'pass') do |session| Net::SSH::SFTP.session(session) do |sftp| if not sftp.put_file(domainfile, "blocks/#{domainfile}") raise "Couldn't upload domain file" end if not sftp.put_file(actionfile, "blocks/#{actionfile}") raise "Couldn't upload action file" end end end I get the following error: could not load public key file '/Users/carl/.ssh/id_rsa.pub' (uninitialized constant OpenSSL::PKey::PKey::Base64 [NameError]) I'm wondering why it fails trying to load the public key file when A) it's there and it's readable by the current user, and B) I've already specified the username and password explicitly, so it doesn't matter if it succeeds in reading the public key file. I figured maybe there was something special in rb-keygen beyond what was in ssh-keygen, so I ran it, but I got the following error when I did that: /usr/local/bin/rb-keygen:25:in `require': No such file to load -- net/ssh/transport/buffer (LoadError) from /usr/local/bin/rb-keygen:25 I installed net-ssh using the setup.rb method, in case it helps. And I'm using OS X. Thanks, Carl