Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 429
  • Last Modified:

Can find rsa key

(Ubuntu 11.04)
I'm following this guide:
https://help.github.com/articles/generating-ssh-keys

I get to the bit in the article where it says:
Your identification has been saved in /c/Users/you/.ssh/id_rsa.
# Your public key has been saved in /c/Users/you/.ssh/id_rsa.pub.
# The key fingerprint is:
# 01:0f:f4:3b:ca:85:d6:17:a1:7d:f0:68:9d:f0:a2:db your_email@example.com

Open in new window

I run the command and get that output, (except I'm logged in as 'root'), but when I try the next line:
clip < ~/.ssh/id_rsa.pub, its says the file doesn't exist. It is there (with ls) but when I nano it, it appears to be empty??
I'm so crap with Linux I'm not sure if I'm looking at the one i just created though...
0
Silas2
Asked:
Silas2
  • 5
  • 3
1 Solution
 
Dan CraciunIT ConsultantCommented:
c:\users\you\.ssh\id_rsa is a Windows path.

~/.ssh/id_rsa.pub is a linux path. Usually it means /home/you/.ssh/id_rsa.pub

You'll have to decide on what system you're working on.

HTH,
Dan
0
 
Silas2Author Commented:
I'm struggling with one of each at both ends....
0
 
Silas2Author Commented:
This is the command I ran:
root@mail:~# cd ~/.ssh
root@mail:~/.ssh# ls
known_hosts
root@mail:~/.ssh# ssh-keygen -t rsa -C "myemail@hotmail.com"

Open in new window

It seemed to run ok and some extra files appeared in the ~/.ssh folder:
 ssh-add id_rsa  ssh-add id_rsa.pub
But they all seem to be empty, am I missing something?
0
How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

 
Patrick BogersDatacenter platform engineer LindowsCommented:
*edit*

You generate the keys on windows or on Linux? i see two sets of requests on 2 different machines.

Which machine is going to generate the keys?
0
 
Silas2Author Commented:
that's on the Ubuntu box...
0
 
Silas2Author Commented:
Sorry to ask a stoopid question but if, as ssh supports the public/private key encryption by default, what is the big advantage of creating these symmetric private keys?
0
 
Patrick BogersDatacenter platform engineer LindowsCommented:
ssh supports encryption through the use of a certificate pair.
basicly the server you want to ssh to needs to hold the private key.

So if you need two sets of keys i assume you want to ssh in the the ubuntu box from windows and vice versa... if not then you do not need 2 sets
0
 
Silas2Author Commented:
hmm, that's true, I'm trying to setup git hub at an Ubuntu box I've got at Rackspace, the linux box is really only for pushing to, and pulling from, not from working on, so I guess I don't need the symmetric keys, that would be right then would it?
0
 
Patrick BogersDatacenter platform engineer LindowsCommented:
Yes thats right
0

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

  • 5
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now