OpenSSH Public Key Authentication Setup

admin
0 0
Read Time:29 Second

This post contains a summarized recipe from OpenSSH Public Key Authentication Setup, to setup SSH public key authentication.

  1. Generate key pair:
    $ ssh-keygen -q -t rsa -f $HOME/.ssh/id_rsa -C public-key1
  2. Limit access:
    $ perl -i -ple 's/^/from="*.mydomain.nl" /' $HOME/.ssh/id_rsa.pub
  3. Append public key to the authorized_keys file on the server (called “machine”):
    $ ssh zeger@machine.domain.nl < $HOME/.ssh/id_rsa.pub 'cat >> .ssh/authorized_keys'

Using empty passphrases is acceptable on intranet environments, so after these 3 simple steps you can login passwordlessly 😉

Happy
Happy
0 %
Sad
Sad
0 %
Excited
Excited
0 %
Sleepy
Sleepy
0 %
Angry
Angry
0 %
Surprise
Surprise
0 %
Next Post

O/R mapping tools - comparison

For a very extensive comparison between seemingly all the O/R mapping tools known to mankind check this wiki page. Perhaps a relevant observation: despite the zealoting, Toplink, OJB and Hibernate (by far _the_ most popular ORM-tool, and the basis for EJB3) all seem to offer roughly the same functionality. And […]
%d bloggers like this: