Difference between revisions of "Linux"

Jump to navigation Jump to search
6 bytes added ,  11:19, 19 April 2011
m
→‎SCP: Typo
(Added "SCP")
m (→‎SCP: Typo)
Line 62: Line 62:
== SCP ==
== SCP ==
In order to be able to copy files from one machine to the other...
In order to be able to copy files from one machine to the other...
<code> scp user@server:/remote/server/path/file /local/server/path/
<code> scp user@server:/remote/server/path/file /local/server/path/ </code>


In order to be able to copy files within a script (and not get prompted for a user password, the public key of the machine running the script needs to be authorised on the remote server.
In order to be able to copy files within a script (and not get prompted for a user password, the public key of the machine running the script needs to be authorised on the remote server.
Line 74: Line 74:
# 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


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

Navigation menu