You can use an SSH tunnel.  Here's an example:

http://stackoverflow.com/a/11862186/26235

But instead of using ssh, you use scp.  Here's the actual command:

http://stackoverflow.com/a/9139670/26235



--
Kili.io - OpenStack for Africa: kili.io
Musings: twitter.com/varud
About Adam: www.linkedin.com/in/adamcnelson


On Fri, Oct 11, 2013 at 9:33 AM, Agosta Liko <agostal@gmail.com> wrote:
If SSH is enabled, its easy to use SFTP

http://en.wikipedia.org/wiki/SSH_File_Transfer_Protocol


On Fri, Oct 11, 2013 at 8:39 AM, Tech List Kenya <techlistkenya@gmail.com> wrote:
Hi guys,
 
I have an ssh connection to a remote server (ServerA,  public IP) from which I then ssh to another box (ServerB) within the same network.
 
How can I copy files from my laptop to ServerB considering I have no write access to ServerA?

_______________________________________________
skunkworks mailing list
skunkworks@lists.my.co.ke
------------
List info, subscribe/unsubscribe
http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks
------------

Skunkworks Rules
http://my.co.ke/phpbb/viewtopic.php?f=24&t=94
------------
Other services @ http://my.co.ke


_______________________________________________
skunkworks mailing list
skunkworks@lists.my.co.ke
------------
List info, subscribe/unsubscribe
http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks
------------

Skunkworks Rules
http://my.co.ke/phpbb/viewtopic.php?f=24&t=94
------------
Other services @ http://my.co.ke