[ILUG] ssh-keygen
Niall O Broin
niall at linux.ie
Tue Sep 2 09:56:37 IST 2008
On 2 Sep 2008, at 09:32, Frank Murphy wrote:
> Niall O Broin wrote:
>> On 2 Sep 2008, at 08:56, Frank Murphy wrote:
>>> In that (sadly misnamed) article, it's intended that you use ssh-
>>> keygen
>> in its most normal way i.e. as a normal user. However, you won't
>> (usually) run ssh-keygen on the server - you'd usually run it on your
>> local workstation, and then copy the public key file to the server
>> where
>> you want it.
>>
>>
>>
>> Niall
>>
>
>
> If the only dir on the server that I need access to is
>
> /Files-01 (Physical Raid1 /dev/md2 )
>
> What would be the advice\ syntax, as most googles bring up access
> /home/x,y,z
>
> and /Files-01 (owner=user) is immedialt under /
It doesn't matter what directories you want access to - your ssh
public key on the server needs to be in the authorized_keys file of
the user you wnt access as, in the .ssh directory in that user's home
directory.
That article often uses the syntax ~/.ssh - that's standard Unix
notation for the directory (or could also be a file e.g.
~/.bashrc) .ssh in the users home directory e.g. ~ is shorthand for
"user's home directory" which is very often /home/user but can be
anywhere e.g. for most Linux distributions, the home directory of root
is /root
Niall
More information about the ILUG
mailing list