Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3966344
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T03:35:17+00:00 2026-05-20T03:35:17+00:00

My SSH keys are associated with my root directory and have none associated with

  • 0

My SSH keys are associated with my root directory and have none associated with each user. When I try to add my keys to heroku i get this response:

skline-mac:~ skline$ heroku keys:add
No ssh public key found in /Users/skline/.ssh/id_[rd]sa.pub.  You may want to specify the full path to the keyfile.

This makes sense because my ssh keys are actually located at /var/root/.ssh/id_rsa.pub. How can I tell heroku to look for my ssh keys there?

Note, because I have locked my ssh directory on my current user using: $ chmod 700 ~/.ssh and $ chmod 600 ~/.ssh/*. I no longer know how to access these directories. Sorry I am new to OSX

Also, when I try to do the same command using sudo, I get:

skline-mac:~ skline$ sudo heroku keys:add 
/Users/skline/.rvm/rubies/ruby-1.9.2-p136/lib/ruby/site_ruby/1.9.1/rubygems.rb:861:in `report_activate_error': Could not find RubyGem heroku (>= 0) (Gem::LoadError)
    from /Users/skline/.rvm/rubies/ruby-1.9.2-p136/lib/ruby/site_ruby/1.9.1/rubygems.rb:255:in `activate'
    from /Users/skline/.rvm/rubies/ruby-1.9.2-p136/lib/ruby/site_ruby/1.9.1/rubygems.rb:1204:in `gem'
    from /Users/skline/.rvm/gems/ruby-1.9.2-p136@rails3tutorial/bin/heroku:18:in `<main>'

Note I also get this errory when I try heroku keys:add /var/root/.ssh/id_rsa.pub I get this error:

skline-mac:~ skline$ heroku keys:add /var/root/.ssh/id_rsa.pub
/Users/skline/.rvm/rubies/ruby-1.9.2-p136/lib/ruby/site_ruby/1.9.1/rubygems.rb:861:in `report_activate_error': Could not find RubyGem heroku (>= 0) (Gem::LoadError)
    from /Users/skline/.rvm/rubies/ruby-1.9.2-p136/lib/ruby/site_ruby/1.9.1/rubygems.rb:255:in `activate'
    from /Users/skline/.rvm/rubies/ruby-1.9.2-p136/lib/ruby/site_ruby/1.9.1/rubygems.rb:1204:in `gem'
    from /Users/skline/.rvm/gems/ruby-1.9.2-p136@rails3tutorial/bin/heroku:18:in `<main>'
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T03:35:18+00:00Added an answer on May 20, 2026 at 3:35 am

    To answer your question most simply:

    heroku keys:add /var/root/.ssh/id_rsa.pub
    

    Regarding “locking” your /~/.ssh folder, those permissions still give you (their owner) full access to read and write files to them.

    And when you run sudo heroku keys:add it throws a fit because of something related to RVM + not the user the gem is installed under, and thus when it tries to load a gem it’s not finding it. At least, that’s my quick assessment from the output you shared. See comment below for correction.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I can't login to github with generated ssh-keys. I've followed this manual: http://help.github.com/linux-key-setup but
I run unsuccessfully curl $Masi@host:~/folder curl: (6) Couldn't resolve host 'host:~' I have SSH-keys
I'm trying to use Net::SSH::Perl to connect using public keys with this code: my
This works fine when I run it by hand: #!/bin/bash eval `ssh-agent` ssh-add /usr/bin/scp
ssh will look for its keys by default in the ~/.ssh folder. I want
I use ssh-agent with password-protected keys on Linux. Every time I log into a
When I try to use an ssh command in a shell script, the command
What's the canonical way to manage cryptographic keys associated with particular source code? (e.g.
I removed my SSH Keys in an effort to backtrack a little bit. When
Does anyone know if TeamCity 5 support the SSH keys generated by using Msysgit?

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.