SSH Public Key Authentication

=============================

    client$ mkdir ~/.ssh

    client$ chmod 700 ~/.ssh

    client$ ssh-keygen -q -f ~/.ssh/id_rsa -t rsa

    Enter passphrase (empty for no passphrase): ...

    Enter same passphrase again: ...

    # first, upload public key from client to server

    client$ scp ~/.ssh/id_rsa.pub server.example.org:

    # next, setup the public key on server

    mkdir ~/.ssh

    chmod 700 ~/.ssh

    cat ~/id_rsa.pub >> ~/.ssh/authorized_keys

    chmod 600 ~/.ssh/authorized_keys

    rm ~/id_rsa.pub
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s