Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I have been asked to generate a pair of SSH keys so that I can access a remote server for development. To generate the keys, I used the ssh-keygen tool on our CentOS box, which I successfully did.

Now I have 2 files: ~/.ssh/id_dsa, ~/.ssh/id_dsa.pub. I will give the admin the .pub file so that he can place it on the remote server. However, I want to use my own personal windows PC (using PuTTY) to access this remote server.

So my question is this: even though I generated the SSH keys on a Linux server (that has no relation whatsoever to the remote server and my pc), can I still access the remote server with my Windows PC using the private key that was created?

The reason I'm a little unsure is because while I was creating the keys, it said "The key fingerprint is: xxxxxxxx" which made me think that since the "fingerprint" is CentOS's fingerprint, it won't let me use the private key on my Windows machine. Am I right that it won't work, or as long as I have the private key it doesn't matter what machine I use to log in to the remote server?

share|improve this question

1 Answer 1

up vote 7 down vote accepted

According to this page you can convert your dsa keys to a format that PuTTY will accept with a PuTTY tool, PuTTY Key Generator.

There is more detail on this page which describes importing your RSA or DSA key into PuTTY format. Essentially, you just select 'Import Key' from the 'Conversions' menu and navigate to where the key is stored on your machine.

share|improve this answer
    
I see. So the fact that the machine using the private key was not the original machine that generated it doesn't matter? –  paul smith Jun 29 '12 at 4:36
    
That is my understanding, but I've never used PuTTY. I have however, moved SSH keys between Linux machines without any issues whatsoever. –  jasonwryan Jun 29 '12 at 4:39
    
@paulsmith that is correct (about it not mattering). If it helps, try not to think of ssh keys as identifying the machine, but rather identifying the user. –  Patrick Jun 29 '12 at 12:06

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.