SSH to HTTP file sharing server.
- 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.txtin your browser
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.
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"
}