Append the key which the user provides to the file ...
*/home/userid/.ssh/authorized_keys*
Then check file and directory permissions as Rob and John have
indicated. SSHD will be picky for purpose of security. It's all good.
-- R; <><
On 4/13/20 8:45 AM, Peter wrote:
> Hello,
>
> So if a user gives a public key where do I place it ?
>
> Is it like
>
> /Home/userid/.ssh/ ?
>
>
>
> On Mon, 13 Apr, 2020, 2:38 PM John McKown, <[email protected]>
> wrote:
>
>> On Mon, Apr 13, 2020 at 4:56 AM Rob van der Heij <[email protected]>
>> wrote:
>>
>>> It goes in the .ssh/authorized_keys file for that user. Be aware that ssh
>>> is picky about permissions
>>>
>> Yes, as the user of the sftp cert needs to do something similr to:
>>
>> mdkir -p ~/.ssh
>> chmod 700 ~/.ssh
>> cp <path+file to cert> ~/.ssh
>> chmod 600 ~/.ssh/*
>>
>>
>>
>>> On Mon, 13 Apr 2020 at 11:37, Peter <[email protected]> wrote:
>>>
>>>> Hello Group,
>>>>
>>>> I have created SFTP server on linux . User has given us public key .
>>>>
>>>> Where exactly the public key have to be placed in linux so that user
>> from
>>>> windows can login using certificate ?
>>>>
>>>> Peter
>>>>
>>>> ----------------------------------------------------------------------
>>>> For LINUX-390 subscribe / signoff / archive access instructions,
>>>> send email to [email protected] with the message: INFO LINUX-390
>> or
>>>> visit
>>>> http://www2.marist.edu/htbin/wlvindex?LINUX-390
>>>>
>>> ----------------------------------------------------------------------
>>> For LINUX-390 subscribe / signoff / archive access instructions,
>>> send email to [email protected] with the message: INFO LINUX-390 or
>>> visit
>>> http://www2.marist.edu/htbin/wlvindex?LINUX-390
>>>
>>
>> --
>> People in sleeping bags are the soft tacos of the bear world.
>> Maranatha! <><
>> John McKown
>>
>> ----------------------------------------------------------------------
>> For LINUX-390 subscribe / signoff / archive access instructions,
>> send email to [email protected] with the message: INFO LINUX-390 or
>> visit
>> http://www2.marist.edu/htbin/wlvindex?LINUX-390
>>
> ----------------------------------------------------------------------
> For LINUX-390 subscribe / signoff / archive access instructions,
> send email to [email protected] with the message: INFO LINUX-390 or visit
> http://www2.marist.edu/htbin/wlvindex?LINUX-390
--
-- R; <><
----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO LINUX-390 or visit
http://www2.marist.edu/htbin/wlvindex?LINUX-390