[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Where do you run ssh-keygen, server or client.



Nathaniel Homier:
>
> I have 1 desktop computer (we will call it son) and it runs a ssh  
> server.  When I visit my mothers house I would like to be able to access  
> (son) from my mothers computer (we will call it mom).  I have setup the  
> ssh server on (son) to use key based authentication.  Now the question  
> is, do I run ssh-keygen on (son) or on (mom)?  What I have done is, on  
> (son) is to:
> $ssh-keygen -t dsa
> $cd .ssh
> $cat id_dsa.pub >> ~/.ssh/authorized_keys

This only allows you to run 'ssh localhost' on son. You could use the
same key (id_dsa + id_dsa.pub) from any other computer and do the same
but I always generate a keypair per machine.

It doesn't matter where you generate the key. The important thing is to
put the contents of id_dsa.pub into the authorized_keys file on the
server.

J.
-- 
I am not scared of death but terrified of people in Tommy Hilfiger
sweatshirts.
[Agree]   [Disagree]
                 <http://www.slowlydownward.com/NODATA/data_enter2.html>

Attachment: signature.asc
Description: Digital signature


Reply to: