|
![](/i/fill.gif) |
On Tue, 13 Sep 2011 19:40:57 +0100, Orchid XP v8 wrote:
>>> Damn. Setting up SSH has got a whole lot easier than when I tried to
>>> do it with Debian a few years ago.
>>>
>>> I'm presuming it defaults to password authentication though? As I
>>> recall, half the trouble was figuring out how to permanently and
>>> irrevocably disable password authentication and *only* allow public
>>> key authentication. (For one thing, you have to work out how to create
>>> a keypair...)
>>
>> Yes, it defaults to password authentication.
>>
>> To disable password authentication, modify /etc/ssh/sshd_config to
>> include:
>>
>> PasswordAuthentication no
>>
>> Done.
>
> The solution may not be complex. Trying to find it in the documentation
> often is.
man sshd_config
Search manpage.
Problem solved.
> Now explain how to generate a keypair and put the public half on the
> list of acceptable clients.
ssh-keygen
Then copy the id_rsa.pub (or id_dsa.pub) file to the ~/.ssh directory on
the target system.
Problem solved.
Jim
Post a reply to this message
|
![](/i/fill.gif) |