This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
other:ssh [2020/08/04 09:33] jypeter Added content to the 'copy' section |
other:ssh [2020/08/19 15:01] jypeter [Copying files with scp] |
||
---|---|---|---|
Line 97: | Line 97: | ||
Sometimes you just need to copy files from one remote server (or your desktop) to the other. The files can be securely copied //over ssh// with the ''scp'' command | Sometimes you just need to copy files from one remote server (or your desktop) to the other. The files can be securely copied //over ssh// with the ''scp'' command | ||
- | Note: if you work with big data files, you should keep the files were they are instead of duplicating them, and move the data processing (your scripts, etc...) to the server where the files are located (e.g. the ciclad server) | + | Note: if you work with big data files, you should keep the files were they are instead of duplicating them, and move the data processing (your scripts, etc...) to the server where the files are located (e.g. the ''ciclad'' server at IPSL) |
==== Copying files with scp ==== | ==== Copying files with scp ==== | ||
Line 111: | Line 111: | ||
* Most common options: | * Most common options: | ||
- | * ''-p'': **preserves modification times**, access times, and modes from the original file. This option is very useful if you want the copied file(s) to have the same date/time as the original file(s). Otherwise, the time will be the time when you copy the file | + | * ''-p'': **preserves modification times**, access times, and modes from the original file.\\ This option is **very useful** if you want the copied file(s) to have the same date/time as the original file(s). Otherwise, the time will be the time when you copy the file(s) |
- | * ''-r'': **recursively** copy entire directories. **You have to use this option if the source location is a directory**. ''scp -r'' will copy the complete content of the directory (including sub-directories) | + | * ''-r'': **recursively** copy entire directories.\\ **You have to use this option if the source location is a directory**. ''scp -r'' will copy the complete content of the directory (including sub-directories) |
==== A recommended graphical scp client for Windows ==== | ==== A recommended graphical scp client for Windows ==== | ||
Line 130: | Line 130: | ||
===== Using ssh keys ===== | ===== Using ssh keys ===== | ||
+ | |||
+ | ==== What are ssh keys? ==== | ||
+ | |||
+ | |||
+ | ==== Creating ssh keys ==== | ||
+ | |||
+ | |||
+ | ==== Installing ssh keys ==== | ||
+ | |||
+ | |||
+ | ==== Using the keys ==== | ||
+ | |||
+ | |||
+ | ==== Using an ssh agent ==== | ||
+ | |||
- | ===== Using an ssh agent ===== | ||
===== More... ===== | ===== More... ===== |