How to copy files from my desktop to my ssh gateway user account so that it can be transferred to other remote servers behind the ssh gateway?

Copy / Transfer files from local desktop to the remote server via the ssh gateway

You can use 'WinSCP' or 'FileZilla' Application or 'sftp' or scp command to transfer files from your desktop or local machines to the remote ssh jump server. Once the file is on the ssh jump server, you can you use the Secure Copy or Parallel Copy feature to transfer the file to other remote servers behind the ssh jump host.

 Copy/transfer files from my local desktop to Ezeelogin gateway using WINSCP Software?
 
1. Open WinSCP and Select SFTP File protocol, provide the Hostname, username, password, and Port number of the Ezeelogin gateway server in the respective fields as shown below. Click on the Login button to connect to the Ezeelogin gateway server.
 
 
2.Right-click on the file and click on the Upload button to transfer the file to the Ezeelogin gateway server as shown below. Also, you can drag and drop the file to the gateway user's folder.
 
 
 

Note: If you use SCP protocol to transfer the file from your Desktop to the Ezeelogin gateway it won't work, and will get the following error.

 
 
Copy/transfer files from my local desktop to Ezeelogin gateway using FILEZILLA Software?
 
1. Open FileZilla application and provide the Hostname, username, password, and Port number of the Ezeelogin gateway server in the respective fields as shown below. Click on the Quickconnect button to connect to the Ezeelogin gateway server.
 
 
2.Right-click on the file and click on the Upload button to transfer the file to the Ezeelogin gateway server as shown below. Also, you can drag and drop the file to the gateway user's folder.
 
 
 
 Copy/transfer files from my local desktop to Ezeelogin gateway using SCP or SFTP commands
 

Authenticate using the ssh gateway user name for scp or sftp to upload the file into the home directory of the ssh gateway user.

 
The below command would transfer the file 'test' from the  desktop to the ssh gateway

scp -P30004 test john@118.211.125.100:~/

To use sftp

sftp john@192.168.56.123
sftp> put ioncube_loaders_lin_x86-64.tar.gz
sftp> ls
ezsh.log                                 ioncube_loaders_lin_x86-64.tar.gz        
sftp> pwd
Remote working directory: /home/john
sftp> 

 
 
 
 
Copy/transfer file from a remote server behind the ssh gateway to local desktop when logged in via Ezeelogin ssh gateway?
 
 
In the below example, we are transferring kernel.tgz from the remote server fatboy to the ssh gateway server jump_server.eznoc.com and then the ssh gateway user john would fetch the file from the gateway to his desktop using sftp as follows. This is useful to fetch files from the remote machines.

[root@fatboy ~]# scp kernel.tgz ezadmin@jump_server.eznoc.com:~john/  

 Login as john onto the ssh gateway server using sftp and fetch the kernel.tgz to local desktop

sftp john@jump_server.eznoc.com

john@jump_server.eznoc.com's password:

Connected to jump_server.eznoc.com .

sftp> ls

kernel.tgz   ezsh.log 

sftp> ls -al

drwx------    2 john  ezuser       4096 Sep 27 02:33 .

drwxr-xr-x   17 root     root         4096 Sep 26 06:49 ..

-rw-r--r--    1 john  ezuser         18 May 10  2016 .bash_logout

-rw-r--r--    john  ezuser        176 May 10  2016 .bash_profile

-rw-r--r--    john ezuser        124 May 10  2016 .bashrc

-rw-------    1 john  ezuser        114 Aug  3 06:57 .history

-rw-r--r--    1 john  ezuser      29705 Sep 27 02:33 kernel.tgz

-rw-r--r--    1 john  ezuser    5949830 Sep 27 02:33 ezsh.log

sftp> get kernel.tgz

Fetching /home/john/kerne.tgz to kernel.tgz

/home/ezadmin/kernel.tgz                                                                                                                                                                                                                     100%   299KB   6.0MB/s   00:00    

sftp>

0 (0)
Article Rating (No Votes)
Rate this article
    Attached Files
    There are no attachments for this article.
    Related Articles RSS Feed
    Backup/restore crashes abruptly without any error
    Viewed 264 times since Sat, Jul 11, 2020
    User prvilege escalation for particular time
    Viewed 319 times since Wed, Apr 22, 2020
    What are the encryption technologies used to secure my data?
    Viewed 1830 times since Mon, Aug 21, 2017
    Can we map existing user group in ldap to ezeelogin as ezeelogin user group ?
    Viewed 4651 times since Mon, Sep 25, 2017
    What are the security measures to ensure data security?
    Viewed 1897 times since Mon, Aug 21, 2017
    How to stream the ssh sessions in real time?
    Viewed 4723 times since Wed, Nov 22, 2017
    How to reset Ezeelogin admin user password on new customer portal ?
    Viewed 1050 times since Fri, Jan 18, 2019
    WEBSOCKET SERVER DISCONNECTED: transport close
    Viewed 383 times since Tue, May 19, 2020
    Integrate Ezeelogin SSH Jump host with ELK for SIEM
    Viewed 109 times since Thu, Nov 26, 2020
    LICENSE ERROR: Could not resolve host: license.ezeelogin.com
    Viewed 184 times since Sat, Sep 26, 2020