Skip to content

Latest commit

 

History

History
29 lines (25 loc) · 1.16 KB

README.md

File metadata and controls

29 lines (25 loc) · 1.16 KB

ssharing

SSH to HTTP file sharing server.

Example

  • Register user: ssh [email protected]
  • Send file: scp file-to-share.txt [email protected]:
  • 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"
}