ssh/scp used keyless....more secure

Michael Hipp Michael
Sun Aug 28 10:49:56 PDT 2005


Net Llama! wrote:
> On 08/28/2005 07:28 AM, Bruce Marshall wrote:
> 
>> On Saturday 27 August 2005 11:03 pm, Net Llama! wrote:
>>
>>> If you already do have an ~/.ssh/authorized_keys on the server for your
>>> user, then you need to append your ~/.ssh/id_dsa.pub to the end of
>>> ~/.ssh/authorized_keys.  So scp ~/.ssh/id_dsa.pub to the server, and
>>> then this should do the trick:
>>> cat id_dsa.pub >> ~/.ssh/authorized_keys
>>>
>>> At this point, you're done, and you should be able to ssh/scp to that
>>> server without passwords.
>>
>>
>>
>> Or more easily, in either case,   use from the client side:
>>
>> ssh-copy-id  -i  ~/.ssh/id_dsa.pub  <user>@<server>
>>
>> You'll be asked for the <user> password on the server and the copy 
>> will complete.   
> 
> 
> ssh-copy-id doesn't seem to exist on any RH/FC systems.

I have it on my Ubuntu boxes.

Michael



More information about the Linux-users mailing list