Skip to Content

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.

  1. Copy the file to the Ezeelogin jumphost server first. Refer how to copy a file from desktop to ssh jumphost
  2. 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.
    backend-destination-server
     ezsh backend shell
     
    In order to transfer the file to a group of servers or a custom list of servers , press 'f7' or  '*' to get to the MEXEC menu, then navigate to the server group or mExec lists ( myCustomList )  to which the files needs to be transferred and then press 'f9 'or '%' to get to the secure copy menu.

    In the example below, we have chosen the Amazon ec2 instances server group
    parallel-copy-menu
  3. 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 '
    parallel-copy

You can exit from the shell after secure copy by typing the command ' exit '

 
Transfer logs from the gateway server to the remote server can be found in the below screenshot.
 
 
 

Transfer / Copy files from the remote server to Ezeelogin gateway.

 
1. In the below example, we will be transferring file from a remote server to the gateway server.
    Navigate to remote server and press ' ^ ' to open up the secure copy in ezsh shell.
 
     In the below example we will take centos.server as the remote server.

 
     In the below example, we have taken  ioncube_loaders_lin_x86-64.tar.gz as a file to copy from centos.server to gateway server .
     Enter the full path of the file in the source file prompt and specify the name for the file in the destination file prompt.
     After successful transfer, files will be available in the  /home/ezadmin  directory.
 
 
2. How to transfer files from server group to gateway server. (Remote server to Gateway)
 

Files in the remote server (group) should have same name in order to transfer from group to gateway server. 

 
    Press ' F7 ' or ' * ' in ezsh shell to get into mexec list and then navigate to the server group from which you want to transfer.
    Then press ' ^ ' to get into the secure copy of ezsh shell.
 
 
 
     You need to enter the  full path of the file in the  source file prompt and specify the name  for  the file in the destination file prompt.  
     If the specified file is available in remote servers, it will be successfully transferred to the gateway server.
    After successful transfer, files will be available in the  /home/ezadmin directory.
 
 
 

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 '.

 
Transfer logs from the remote server to the gateway server can be found in the below screenshot.