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 'scp' or 'winscp' or 'sftp' 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 file to other remote servers behind the ssh jumphost.

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

scp /your/file/name [email protected]:~/

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

scp -P30004 test [email protected]:~/

To use sftp

sftp [email protected]
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

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

[[email protected] ~]# scp kernel.tgz [email protected]  

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

sftp [email protected]

[email protected]'s password:

Connected to .

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    


0 (0)
Article Rating (No Votes)
Rate this article
    Attached Files
    There are no attachments for this article.
    Related Articles RSS Feed
    Will i be locked out of my servers if my ezeelogin hosted server goes down ?
    Viewed 1800 times since Mon, Aug 21, 2017
    What are the outbound ports that needs to be opened for fetching the license?
    Viewed 1120 times since Mon, Aug 21, 2017
    Add servers behind a Tunnel Host in SSH Gateway or Add servers that are accessible via port forwarding via the ssh gateway server.
    Viewed 2072 times since Wed, Jan 17, 2018
    How to grant Parallel Shell privilege for a user?
    Viewed 2713 times since Wed, Nov 22, 2017
    Is it possible to view all ssh logs of a deleted user ?
    Viewed 1186 times since Sun, Dec 17, 2017
    How to find the ssh jumphost software version that is being run?
    Viewed 1081 times since Thu, Mar 1, 2018
    Is it possible to disable security codes in ssh gateway?
    Viewed 1057 times since Wed, Jan 31, 2018
    How does the license upgrade work?
    Viewed 1169 times since Mon, Aug 21, 2017
    How to view the Help Menu in the ezsh backend shell?
    Viewed 1234 times since Thu, Nov 23, 2017
    Webportals unavailable for user
    Viewed 2372 times since Fri, Dec 8, 2017