How to copy a file to a remote server or group of servers behind the ssh jumphost? Parallel Copy - How to do it?
Transfer / Copy files from user desktop to remote servers via the Ezeelogin gateway.
- Copy the file to the Ezeelogin jumphost server first. Refer how to copy a file from desktop to ssh jumphost
- Login into ezsh shell and select the remote server to which the file has to be transferred or the server group to which file has to be transferred.
In the example below, we will be transferring file to remote server fatboy.eznoc.com, hence selected as shown. After selecting the server to which the files has to be transferred, press 'f9' or '%' to get the secure copy menu.
In the example below, we have chosen the Amazon ec2 instances server group
- Press 'f9' or '%' to open up the Secure Copy in ezsh shell. In Source file, enter the relative path to the file that needs to be transferred. In the example below we have selected ioncube_loaders_lin_x86-64.tar.gz as the file to be copied to remote server fatboy.eznoc.com . In the Destination file, enter the absolute path including the complete file name as shown below.
pressing the 'tab' key would list the different files that is the home directory of the user available for transfer
folders or directory cannot be transferred as such. They have to compressed into a file such a .zip file or .tar file or tar.gz etc to transfer.
When doing a transfer of file to the server group, the output is as shown below. As you can see the files were copied to remote servers messi.eznoc.com and martian.eznoc.com which were the members in the server group ' Amazon ec2 instances '
You can exit from the shell after secure copy by typing the command ' exit '
Transfer / Copy files from the remote server to Ezeelogin gateway.
Files in the remote server (group) should have same name in order to transfer from group to gateway server.
The transferred file will be saved in filename_remote.server_timestamp format.
In the above example it will be ioncube_loaders_lin_x86-64.tar.gz_centos.server~Thu_Apr_29_05:18:33_2021
Here ioncube_loaders_lin_x86-64.tar.gz is the filename , centos.server is the remote server and Thu_Apr_29_05:18:33_2021 is the timestamp .
You can exit from the shell after secure copy by typing the command ' exit '.