====== How to copy files with "scp" between a local PC and scfront2021 via scplatform2021 ======
Connection settings for this article
^ ^Host^Login Name (username) ^
|Destination Server |scfront2021 |cNNNNxxxx |
|Jump Server |scplatform2021.isee.nagoya-u.ac.jp|cNNNNxxxx |
|Your Client |host1 |yourname |
Client --> Jump Server (scplatform2021) --> Destination Server (scfront2021)
==== 0. Preconditions ====
* You must be able to log in to scfront2021. ([[public:en:manual:cidas:sshlogin|ssh login]])
==== 1. Edit config ====
Add or edit the following code to ~/.ssh/config on host1.
Host scfront2021
Hostname 133.47.144.61
User cNNNNxxxx
Port 61018
ForwardAgent yes
ForwardX11 yes
ForwardX11Trusted yes
ProxyJump cNNNNxxxx@scplatform2021.isee.nagoya-u.ac.jp
==== 2. Copying files to scfront2021 over scplatform2021 ====
The command to copy the file of host1 to scfront2021 is as follows:
=== scp ===
host1$ scp ./FILE cNNNNxxxx@scfront2021:
FILE 100% 8 1.6KB/s 00:00
The command to copy the file of scfront2021 to host1 is as follows:
=== scp ===
host1$ scp -p cNNNNxxxx@scfront2021:FOOBAR .
FOOBAR 100% 8 1.6KB/s 00:00
----
* [[public:en:manual:cidas:start|CIDAS system manual]]
* https://portal.isee.nagoya-u.ac.jp/stel-it/doku.php?id=isee-ldap:ssh_forward_en#copying_files_to_skdb2021_over_ssh (ISEE member only)