Upload File to Remote Server through Gateway

2018/8/27 posted in  Other comments

In many companies and universities, you are not allowed to access production servers directly, but are required to use a gateway server. But what if you need to upload files to production servers? Here is a convenient way based on SecureCRT.

Set up port forwarding

2018-08-27_18-42-33

When done, you need to open a SSH session with your gateway server.

Use SFTP client for uploading

Open any SFTP client, server address is 127.0.0.1, port is 1234, user name and password are identical to your production server. Yes, port forwarding makes it like your are connecting to local machine, but every data is forwarded to your production server through gateway SSH.