Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/bash/18.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ruby Heroku Dep问题:SSH,公钥失败(Errno::EISDIR)_Ruby_Bash_Heroku_Ssh - Fatal编程技术网

Ruby Heroku Dep问题:SSH,公钥失败(Errno::EISDIR)

Ruby Heroku Dep问题:SSH,公钥失败(Errno::EISDIR),ruby,bash,heroku,ssh,Ruby,Bash,Heroku,Ssh,我目前正在学习Hartl的教程,努力部署到heroku。运行OSX 10.8.1 经历过ssh问题,在这里通读了三十多个问题,但无法理解。 我已经添加了两个额外的ssh id,但它为id 2和3提供了以下错误 $ heroku login Enter your Heroku credentials. Email: email@gmail.com Password (typing will be hidden): Found the following SSH public keys: 1)

我目前正在学习Hartl的教程,努力部署到heroku。运行OSX 10.8.1

经历过ssh问题,在这里通读了三十多个问题,但无法理解。 我已经添加了两个额外的ssh id,但它为id 2和3提供了以下错误

$ heroku login
Enter your Heroku credentials.
Email: email@gmail.com  
Password (typing will be hidden): 
Found the following SSH public keys:
1) github_rsa.pub
2) id_dsa.pub
3) id_rsa.pub

Which would you like to use with your Heroku account? 3
Uploading SSH public key /Users/admin/.ssh/id_rsa.pub... failed
 !    Heroku client internal error.
 !    Search for help at: https://help.heroku.com
 !    Or report a bug at: https://github.com/heroku/heroku/issues/new

    Error:       Is a directory - /Users/admin/.ssh/id_rsa.pub (Errno::EISDIR)
    Backtrace:   

  /Users/admin/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/heroku-2.32.4/lib/heroku/auth.rb:290:in `read'
  /Users/admin/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/heroku-2.32.4/lib/heroku/auth.rb:290:in `block in associate_key'
  /Users/admin/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/heroku-2.32.4/lib/heroku/helpers.rb:236:in `action'
  /Users/admin/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/heroku-2.32.4/lib/heroku/auth.rb:288:in `associate_key'
  /Users/admin/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/heroku-2.32.4/lib/heroku/auth.rb:269:in `associate_or_generate_ssh_key'
  /Users/admin/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/heroku-2.32.4/lib/heroku/auth.rb:239:in `check_for_associated_ssh_key'
  /Users/admin/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/heroku-2.32.4/lib/heroku/auth.rb:233:in `ask_for_and_save_credentials'
  /Users/admin/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/heroku-2.32.4/lib/heroku/auth.rb:84:in `get_credentials'
  /Users/admin/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/heroku-2.32.4/lib/heroku/auth.rb:41:in `login'
  /Users/admin/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/heroku-2.32.4/lib/heroku/command/auth.rb:31:in `login'
  /Users/admin/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/heroku-2.32.4/lib/heroku/command.rb:206:in `run'
  /Users/admin/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/heroku-2.32.4/lib/heroku/cli.rb:28:in `start'
  /Users/admin/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/heroku-2.32.4/bin/heroku:16:in `<top (required)>'
  /Users/admin/.rbenv/versions/1.9.3-p194/bin/heroku:23:in `load'
  /Users/admin/.rbenv/versions/1.9.3-p194/bin/heroku:23:in `<main>'

    Command:     heroku login
    Version:     heroku-toolbelt/2.32.4 (x86_64-darwin12.1.0) ruby/1.9.3 autoupdate
问题可能是我需要将#1替换为#3(删除除#3 id之外的所有id?)


我会喜欢你的帮助

再次尝试重新生成公钥。但在此之前,请再次尝试添加。否则,
ssh-keygen-t rsa
然后
heroku-keys:add


但请注意,如果您更改了密钥,您以前绑定的其他应用程序也必须更改。

谢谢。我现在又添加了两个,但不确定是否正确。1) 我想我应该删除旧钥匙是吗?2) 当我这样做时,我应该在~/.ssh目录中吗?是的,您可以随时删除旧密钥。不,您不必位于ssh目录中,因为它是假定的。
Permission denied (publickey).
fatal: The remote end hung up unexpectedly