Giter VIP home page Giter VIP logo

sftp-squid's Introduction

SFTP-Squid - CLI for transferring files between two remote SFTP servers

Simple usage:

$ sftpsquid user1@host1:file user2@host2:

Installation instructions

Linux and MacOS:

  1. Download the latest release from github
  2. Unzip the file.

Then you can run it either from inside the directory or you can move the two files (sftpsquid and sftpsquid.jar) somewhere convenient. We recommend you to use your bin directory, i.e. /Users/<your_user_name>/bin/ on Mac and /home/<your_user_name>/bin on linux.

Build instructions

Prerequisites

  1. git
  2. maven
  3. Java 1.8

Checkout the source

$ git clone https://github.com/BILS/sftp-squid.git
$ cd sftp-squid

Build

Project is easiest built using maven:

$ mvn clean compile assembly:single

Test environment

There is a test environment in the vm/ subdirectory. It uses vagrant with the virtual box provisioner and ansible for configuration to set up 2 virtual machines for testing.

Prerequisites

You need virtualbox installed on your system.

To setup ansible it is recommended that you create a virtual python environment using virtualenv. And then install the requirements from the requirements.txt file.

$ cd vm
$ virtualenv env
$ source env/bin/activate
$ pip install -r requirements.txt

Setup

Once the virtual environment for testing is setup you can spin up the machines:

$ vagrant up

This will privision 2 virtual machines with ssh open on localhost ports 4021 and 4022. Both have for the user test_user password asdfasdf and a second factor password is set as well which is hej.

Test

To then test the transfer of one directory do this:

$ sftpsquid test_user@localhost:4021:transfer test_user@localhost:4022:

sftp-squid's People

Contributors

viklund avatar dependabot[bot] avatar jhagberg avatar snyk-bot avatar andersla avatar samuell avatar

Stargazers

 avatar

Watchers

Erik Ylipää avatar Alvaro Martinez Barrio avatar Valentin Georgiev avatar James Cloos avatar Johan avatar Malin Klang avatar Björn avatar  avatar  avatar  avatar  avatar Richèl Bilderbeek avatar Mats Dahlberg avatar  avatar Ing Erl avatar Per Johnsson avatar Malin Östensson avatar Marcin Kierczak avatar  avatar Jessica Lindvall avatar John Lövrot avatar Nanjiang Shu avatar Moritz avatar Thomas Källman avatar Jonas Söderberg avatar Guilherme Borges Dias avatar  avatar Agustín Andrés Corbat avatar Estelle PW avatar  avatar Martin Pippel avatar  avatar Fredrik Levander avatar Airen Zaldivar Peraza avatar  avatar Juliana Assis avatar Dag Ahren avatar Markus Ringnér avatar  avatar  avatar  avatar Ashfaq Ali avatar Emilio Mármol Sánchez avatar  avatar

Forkers

samuell

sftp-squid's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.