The Chavers

Rob, Missy, Olivia, Genevieve, family and friends.

scp / ssh tricks

E-mail Print PDF

To copy a file from a machine behind a firewall, there is no need to recursively scp your files between them. It's much easier to create an ssh tunnel using the firewall as a middle man.

 

On the local machine, issue:

ssh -L 2222:internal-host.local:22 user@remote

Then use scp like so:

scp -P 2222 user@localhost:/path/to/file /path/to/save/

Last Updated on Friday, 12 December 2008 18:13  

Random Image

Southwick's Zoo
 
 
Southwick's Zoo Date: 08/28/2009

Login Form