2,187
edits
m (→File System and File Operations: Added du option) |
(→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 == |