Skip to content

dzmitryk/ssharing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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"
}

About

SSH to HTTP file sharing server

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages