[英]How to transfer files from AWS server to local machine where the AWS server is behind Bastion server
How to transfer files from AWS server to local machine 如何将文件从AWS服务器传输到本地计算机
Following is the way all the machines are located 以下是所有机器的定位方式
AWS machine -> Bastion server -> Local machine
I have copied the files from AWS machine to Bastion server and Bastion server to local machine with SCP command 我已使用SCP命令将文件从AWS机器复制到堡垒服务器,并将堡垒服务器复制到本地计算机
Following are the two steps I have done 以下是我完成的两个步骤
scp user@ipaddress:~/test1.txt ./
scp user@bastion:~/test1.txt ./
I would like to automate with a single script which needs to be triggered from my local machine for copying files from AWS instance to local machine 我想使用一个脚本自动执行此脚本,该脚本需要从本地计算机触发才能将文件从AWS实例复制到本地计算机
There is no need to copy files to the Bastion server. 无需将文件复制到堡垒服务器。 In fact, from a security perspective, extremely little should be stored on a Bastion server.
实际上,从安全性的角度来看,堡垒服务器上应该存储的存储量很少。
Instead, there are two methods you can use to directly connect to the "AWS machine" via the Bastion. 而是可以使用两种方法通过堡垒直接连接到“ AWS计算机”。
See: 看到:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.