Capistrano SSH::AuthenticationFailed, not prompting for password

后端 未结 9 1180
既然无缘
既然无缘 2020-12-07 22:41

I\'ve been using capistrano successfully for a while now and all of a sudden in every project I\'ve lost the ability to deploy.

Environment:

  • os X (Mave
9条回答
  •  自闭症患者
    2020-12-07 22:48

    I have a workaround that doesn't require downgrading net-ssh, per a comment at the link that Zach Lipton posted. Place this code in config/deploy.rb:

    set :ssh_options, {
      config: false
      #Other options...
    }
    

    After I did that, I got another error, Error reading response length from authentication socket. Found the solution to that here. Execute these commands at your Bash prompt:

    $ eval $(ssh-agent)
    $ ssh-add
    

提交回复
热议问题