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

About this user

nevada

« Newer Snippets
Older Snippets »
Showing 1-1 of 1 total  RSS 

ssh and scp without typing a password each time

* You can create and exchange ssh keys to avoid repeatedly typing your password.

Source: ssh-keygen -t dsa Type this once per log-in session
Source: Now copy the .ssh/id_dsa.pub file to <Destination>.
Source: scp .ssh/id_dsa.pub userid@<Destination>:tempid we've renamed it tempid.
Destination: cat tempid >> .ssh/authorized_keys
add the contents of tempid to .ssh/authorized_keys.
Destination: rm tempid.
« Newer Snippets
Older Snippets »
Showing 1-1 of 1 total  RSS