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

Re: Need a tutorial



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Wed, Sep 21, 2016 at 10:18:55AM -0400, Gene Heskett wrote:
> Greetings all, Dr Klepp in particular;
> 
> Where can I get a tut on doing the ssh keyfile login, and where can I 
> find a tutorial that is essentialy what Dr. Klepp had me do about a year  
> back that made these 3 commands in my rc.local file Just Work:

Basically:

 1. you need a keypair. Unless you have it already, you generate one
    with ssh-keygen. There, you have the choice to let it use the default
    file name (typically, ~/.ssh/id_rsa and ~/.ssh/id_rsa.pub or similar,
    depending on the key type) and whether you want the private key
    protected by a passphrase (recommended, but you have to unlock it
    either with ssh-add or whatever mechanism your desktop environment
    has for you).

 2. you copy the public part to the ~/.ssh/authorized_keys of the server's
    user you want to log into -- there's the handy "ssh-copy-id" for that.
    From the client

    ssh-add # if not done already
    ssh-copy-id user@server # enter for one last time user's password there

This is the bird's view. Ask if you get stuck.

regards
- -- t
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iEYEARECAAYFAlfitEcACgkQBcgs9XrR2kbHtQCcDxCW1tvvn/iO2diu3Ke7efuC
C5gAn0iq813ipmLaxhYbiBvoahFEYQ0v
=0El5
-----END PGP SIGNATURE-----


Reply to: