Scp magic

Ever needed to copy a file from one host to another, but being forced to go over an intermediate host because you don’t have the rights to access the machine with the file directly?

Let me put an end to your dispair then! Here’s a small script called scp-via that can do this for you! Just run


– with the same syntax for FROM_TARGET and TO_TARGET as you use for regular scp.

Basically it performs a little scp, netcat, ssh magic under the hood, but hopefully you need not worry about that.

I believe I need not say that scp-via comes with absolutely no warranty or guarantees about not desctroying your hard drives. Run it at your own risk.

This entry was posted in Hacking, kamstrup and tagged , , , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s