Never been to DZone Snippets before?

Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

Public key authentication (See related posts)

The 'key' here is the chmodding... OpenSSH requires proper permissions!

   1  ssh-keygen -t rsa -b 2048
   2  
   3  scp .ssh/id_rsa.pub user@remote.box:~
   4  ssh user@remote.box
   5  chmod 700 .ssh
   6  cat id_rsa.pub >> .ssh/authorized_keys
   7  chmod 600 .ssh/authorized_keys
   8  rm id_rsa.pub

You need to create an account or log in to post comments to this site.


Click here to browse all 5555 code snippets

Related Posts