Send files via bastion server with scp

First, SSH connection to the bastion server

tarminal


ssh ‘step server’-l User

Example

tarminal


ssh 111.222.333.444 -l hogehoge

File transmission with scp

tarminal


scp user@The server where the files are located:File path user@Destination server:Storage directory

Example

tarminal


scp [email protected]:/home/hage/aaa.txt [email protected]:/home/huga/

Enter the path for each server

Recommended Posts

Send files via bastion server with scp
Send email via gmail with Python 3.4.3.
[Scp] Copy files locally from Linux server with Tera Term ssh scp
Extract files from EC2 storage with the scp command
Upload files with Django
Send email with Django
Proxy server with Docker
Send email with Python
Local server with python
[Python] Send gmail with python: Send one by one with multiple image files attached
Send and receive data with MQTT via Watson IoT Platform