Intro
t4t
is a minimalist webpaste solution written in bash. It leverages ssh for transmission and authentication. It is not a daemon, and it does not maintain state. It does not serve content, enforce disk limits, or purge old files; these tasks are left up to the system administrator.
The "backend" consists of no more than ~70 lines of bash. It is highly configurable through shell variables that can be overridden per-user through command line options.
t4t
sports minimal security features, and is therefore designed to be used amongst friends and acquaintances. It enforces file size limits for individual files to prevent accidentally clogging up the disk, but does not throttle or limit the total amount of data any given user can consume on disk. It is able to blacklist certain file extensions, which will be stripped from the file name provided by the user.
After set-up, uploading files is trivial:
ssh t4t@host [name...] <FILE
or, use the provided t4t
script:
t4t file1 file2 file3 ...
Obtaining the software
Clone git://git.girlpoison.org/t4t
. You can browse the source code on the git page.