Difference between revisions of "Linux"

Jump to navigation Jump to search
340 bytes added ,  16:14, 30 October 2013
→‎SCP: Added alternate
(→‎SCP: Added alternate)
Line 161: Line 161:
# If so, append the contents of the copied key to the file
# If so, append the contents of the copied key to the file
# If not, copy the file
# If not, copy the file
Alternatively...
# On the local machine, be logged in as the same user as will be running the script
# Create public key on local machine (just hit return to accept default options)
#* <code> ssh-keygen -t rsa </code>
# Copy key to remote machine
#* <code>cat /root/.ssh/id_rsa.pub | ssh user@server "cat >> ~/.ssh/authorized_keys"</code>


== VI Editor ==
== VI Editor ==

Navigation menu