Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
en:documentation:tutorials:copie [2019/06/20 15:58] – [From outside of ENS network] ltaulell | en:documentation:tutorials:copie [2023/12/12 12:57] (Version actuelle) – supprimée ltaulell | ||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
- | |||
- | ====== Copying files ====== | ||
- | |||
- | ===== Using scp ===== | ||
- | |||
- | ==== From ENS network ==== | ||
- | |||
- | |||
- | * Copy from your computer to '' | ||
- | |||
- | <code bash> | ||
- | scp file1 yourlogin@allo-psmn: | ||
- | |||
- | scp path1/file1 yourlogin@allo-psmn: | ||
- | </ | ||
- | |||
- | You'll need to enter your password except if you [[documentation: | ||
- | |||
- | * Copy from '' | ||
- | |||
- | <code bash> | ||
- | scp yourlogin@allo-psmn: | ||
- | |||
- | scp yourlogin@allo-psmn: | ||
- | </ | ||
- | |||
- | You'll need to enter your password except if you [[documentation: | ||
- | |||
- | |||
- | ==== From outside of ENS network ==== | ||
- | |||
- | * Copy (file1 -> file2) from your computer to '' | ||
- | |||
- | <code bash> | ||
- | scp -oProxyCommand=" | ||
- | |||
- | scp -oProxyCommand=" | ||
- | </ | ||
- | |||
- | * Copy (file1 -> file2) from '' | ||
- | |||
- | <code bash> | ||
- | scp -oProxyCommand=" | ||
- | |||
- | scp -oProxyCommand=" | ||
- | </ | ||
- | |||
- | |||
- | <wrap center round tip 80%> | ||
- | You can use simpler copy commands just by using a [[en: | ||
- | This file is also useful for your everyday connection to the PSMN and if you choose to use '' | ||
- | |||
- | </ | ||
- | |||
- | ===== Using sftp ===== | ||
- | |||
- | ==== From outside of ENS network ==== | ||
- | |||
- | First, you need to open a '' | ||
- | |||
- | <code bash> | ||
- | |||
- | Output: Connecting to allo-psmn... | ||
- | |||
- | Then, enter your password | ||
- | < | ||
- | |||
- | Remote working directory : / | ||
- | |||
- | sftp> | ||
- | </ | ||
- | Use the command '' | ||
- | |||
- | |||
- | ==== From outside of ENS network ==== | ||
- | |||
- | Fill in the command below: | ||
- | |||
- | <code bash> | ||
- | |||
- | ===== Using rsync ===== | ||
- | ==== From ENS network ==== | ||
- | |||
- | * Copy from your computer to ''/ | ||
- | |||
- | <wrap center round important 60%> | ||
- | You need a [[en: | ||
- | </ | ||
- | |||
- | Exemple with the front node m6142comp1: | ||
- | |||
- | * '' | ||
- | |||
- | <code bash> | ||
- | Host m6142comp1 | ||
- | User < | ||
- | Hostname m6142comp1 | ||
- | ProxyCommand ssh < | ||
- | </ | ||
- | |||
- | * commande rsync | ||
- | |||
- | <code bash> | ||
- | rsync -avz -4 --ignore-errors --delay-updates -e ssh ./sourcedir < | ||
- | </ | ||
- | |||
- | |||
- | The name of all available front nodes is listed [[documentation: | ||
- | |||
- | Check '' | ||
- | |||
- | |||
- | ==== From outside of ENS network ==== | ||
- | |||
- | * You need to extend your [[en: | ||
- | |||
- | |||
- | <code bash> | ||
- | # external gateway | ||
- | Host allo-external | ||
- | User < | ||
- | ProxyCommand ssh < | ||
- | |||
- | Host m6142comp1-ext | ||
- | User < | ||
- | Hostname m6142comp1 | ||
- | ProxyCommand ssh < | ||
- | </ | ||
- | |||
- | * rsync command | ||
- | |||
- | from your computer to the front node as defined in the config file: m6142comp1-ext | ||
- | |||
- | <code bash> | ||
- | rsync -avz -4 --ignore-errors --delay-updates -e ssh ./sourcedir < | ||
- | </ | ||
- | |||
- | ===== Using sshfs ===== | ||
- | |||
- | You need to use a SSH '' | ||
- | |||
- | Example : | ||
- | |||
- | <code bash> | ||
- | ~/ | ||
- | |||
- | Host * | ||
- | TCPKeepAlive yes | ||
- | ForwardAgent yes | ||
- | ForwardX11 yes | ||
- | |||
- | Host allo-psmn-multihop | ||
- | User yourloggin | ||
- | ProxyCommand ssh -qt yourloggin@ssh.psmn.ens-lyon.fr allo-psmn 22 | ||
- | # verbose (debug): | ||
- | # | ||
- | |||
- | Host multihop-psmn | ||
- | User yourloggin | ||
- | Hostname m6142comp1 | ||
- | ProxyCommand ssh -qt yourloggin@allo-psmn-multihop netcat -w1 %h %p | ||
- | |||
- | </ | ||
- | |||
- | * Mount your /home (from PSMN): | ||
- | |||
- | <code bash> | ||
- | ltaulell@xt3: | ||
- | ltaulell@xt3: | ||
- | </ | ||
- | |||
- | To unmount you /home :'' | ||
- | |||
- | * Mount share volume (here, ondesint) : | ||
- | |||
- | < | ||
- | ltaulell@xt3: | ||
- | ltaulell@xt3: | ||
- | </ | ||
- | |||
- | To unmount : '' | ||
- | |||
- | |||
- | ===== From a Windows machine===== | ||
- | |||
- | From a Windows© machine, use the following combinaition of tools [[documentation: | ||