Table of Contents

How to copy files with "scp" between a local PC and scfront2021 via scplatform2021

Connection settings for this article

HostLogin Name (username)
Destination Server scfront2021 cNNNNxxxx
Jump Server scplatform2021.isee.nagoya-u.ac.jpcNNNNxxxx
Your Client host1 yourname

Client –> Jump Server (scplatform2021) –> Destination Server (scfront2021)

0. Preconditions

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