User Tools

Site Tools


other:ssh

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

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/20 13:15]
jypeter [A quick introduction] Added links and ref to keys and ESPRI
Line 16: Line 16:
     * This page will also show some examples using the LSCE and IPSL (ciclad) servers     * This page will also show some examples using the LSCE and IPSL (ciclad) servers
  
-  * Instead of a password, you can also use a set of //private and public keys// and a //passphrase//+  * Instead of a password, you can also [[other:​ssh#​using_ssh_keys|use a set of private and public keys and a passphrase]] 
 +    * This is the only kind of authentication that will work if you need to use the [[https://mesocentre.ipsl.fr/|IPSL Mésocentre ESPRI]] (aka **ciclad** and **climserv**)!
  
   * Many programs are said to //work over ssh// when they implicitly use the //ssh protocol// to securely transfer their data from one server to another: ''​scp''​ (copy remote directories and files), ''​rsync''​ (synchronize remote directories and files), ...   * Many programs are said to //work over ssh// when they implicitly use the //ssh protocol// to securely transfer their data from one server to another: ''​scp''​ (copy remote directories and files), ''​rsync''​ (synchronize remote directories and files), ...
Line 97: Line 98:
 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 112:
  
   * 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 131:
  
 ===== 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... =====
other/ssh.txt · Last modified: 2023/05/03 08:32 by jypeter