Skip to content

Allows you to use an SSH server as a piping-server.

License

Notifications You must be signed in to change notification settings

piroor/piping.sh

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

piping.sh

Allows you to use an SSH server as a piping-server. This is inspired from:

Usage

Preparation

  1. Setup an SSH server.
  2. Put the piping at /usr/local/bin/piping or somewhere.

Basic usage

Assume that you already setup a relay server as my-ssh-server.

On a sender host, you may give any data to your relay server via a pipeline, as:

user@sender-host:~$ seq 1 3 | ssh user@my-ssh-server piping seq

On this case, piping is the command name and the argument seq is the name of the pipeline. If there is no existing pipeline with the name, piping starts in the writing mode. Otherwise the command starts in the reading mode for a receiver. Ths, on a receiver host, you may receive any data from your relay server via a pipeline, as:

user@receiver-host:~$ ssh user@my-ssh-server piping seq
1
2
3

Additional usage

If you give no pipeline name, piping generates random name for a new pipeline and starts in the writing mode:

user@sender-host:~$ seq 1 3 | ssh user@my-ssh-server piping
A pipeline is prepared as "K6JK2"

On this case, K6JK2 is the name of the pipeline. Then you will need to specify the generated name on the receiver, like:

user@receiver-host:~$ ssh user@my-ssh-server piping K6JK2
1
2
3

About

Allows you to use an SSH server as a piping-server.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages