ssharing

command module
v0.0.0-...-c9650f5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 16, 2015 License: AGPL-3.0 Imports: 11 Imported by: 0

README

ssharing

SSH to HTTP file sharing server.

Example

  • Register user: ssh new-user@ssharing.myhost.com
  • Send file: scp file-to-share.txt new-user@ssharing.myhost.com:
  • Receive file by opening http://ssharing.myhost.com/new-user/file-to-share.txt in your browser

How it works

ssharing server pipes input it receives from scp request coming from the uploader to an http response on the receiver's side. Transferred files are not stored on the server. When file transfer is initiated, scp will wait for http request to download this file and start the actual transfer only then. That is, the file is transferred to the first user who has requested it, for another user to download it scp command has to be issued again.

Configuration

JSON configuration file named ssharing.conf populated with the defaults is created in the working directory if it doesn't exist. Sample configuration file with all available options can be found below.

{
	"SshKeyLocation":"keys/id_rsa",
	"UsersDir":"users/",
	"SshPort":":2222",
	"HttpPort":":8080",
	"EnableTls":"true",
	"TlsCertLocation":"cert/server.crt",
	"TlsKeyLocation":"cert/server.key"
}

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL