DZone 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

Snippets has posted 5883 posts at DZone. View Full User Profile

Push Your Public Key To A Server

  • submit to reddit
        If you've already created your ssh keys locally do this to push the public key to a server so you won't have to login to the server everytime you ssh or cap deploy. 

 cat .ssh/ | ssh "cat >> .ssh/authorized_keys2"