Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
net-ssh 2.6.0 issues #286
I had this error after upgrading net-ssh from 2.5.2 to 2.6.0
This seems to be related to net-ssh, but as I came across this issue in capistrano I'm filing the issue here now. Not sure what the problem is, no idea how to fix it :)
My workaround is just requiring net-ssh 2.5.2 explicitly for now.
I had this error in capistrano, but I don't think it was related to net-ssh in my case. My problem was that I needed to enclose my ssh key file location in quotes in my config/deploy.rb file, like this:
ssh_options[:keys] = %w('~/.ssh/id_rsa.pub')
ssh_options[:keys] = %w(~/.ssh/id_rsa.pub)
This problem may be caused by ssh private key with passphrase and no ssh public key.
Try remove ssh_options[:keys] and invoke follow command:
ssh-keygen -y -f ~/.ssh/id_rsa > ~/.ssh/id_rsa.pub
ArgumentError: Could not parse PKey: no start line from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/net-ssh-2.6.1/lib/net/ssh/key_factory.rb:77:in `read' from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/net-ssh-2.6.1/lib/net/ssh/key_factory.rb:77:in `load_data_private_key' from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/net-ssh-2.6.1/lib/net/ssh/key_factory.rb:42:in `load_private_key' from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/net-ssh-2.6.1/lib/net/ssh/authentication/key_manager.rb:215:in `block in load_identities' from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/net-ssh-2.6.1/lib/net/ssh/authentication/key_manager.rb:207:in `map' from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/net-ssh-2.6.1/lib/net/ssh/authentication/key_manager.rb:207:in `load_identities' from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/net-ssh-2.6.1/lib/net/ssh/authentication/key_manager.rb:100:in `each_identity' from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/net-ssh-2.6.1/lib/net/ssh/authentication/methods/publickey.rb:19:in `authenticate' from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/net-ssh-2.6.1/lib/net/ssh/authentication/session.rb:78:in `block in authenticate' from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/net-ssh-2.6.1/lib/net/ssh/authentication/session.rb:65:in `each' from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/net-ssh-2.6.1/lib/net/ssh/authentication/session.rb:65:in `authenticate' from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/net-ssh-2.6.1/lib/net/ssh.rb:190:in `start' from (irb):3 from /usr/local/rvm/rubies/ruby-1.9.3-p194/bin/irb:16:in `'
+1 to @paneq
/gems/net-ssh-2.6.2/lib/net/ssh/key_factory.rb:77:in `read': Could not parse PKey: no start line (ArgumentError)
can be verified by calling:
I can see how it's an issue with the underlying 'net/ssh', but the response could be far more helpful.