Setting up OpenSSH public key authentication

First upload your public key to the server you want to log in:

scp .ssh/id_rsa.pub user@1.2.3.4:/home/user

On the server, add the public key file to the authorized_keys file:

cat id_rsa.pub >> .ssh/authorized_keys

Now you can login using public key authentication and you don’t have to enter a password anymore.

Share this post:

  • Print this article!
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
Related posts:
  1. Setting up Ethernet 802.1X Port Based Authentication on Linux
  2. Setting up a Public Key Infrastructure (PKI) on Linux: Theory and Practice
  3. Recover the root password on Linux
  4. Setting up an IPv6 Bind DNS Server on Linux
  5. How does Opera Unite’s File Sharing Service work?

Leave a Reply