| Crates.io | aft |
| lib.rs | aft |
| version | 8.0.2 |
| created_at | 2024-04-17 17:15:17.571617+00 |
| updated_at | 2025-01-20 14:02:41.357069+00 |
| description | Transfer files easily and fast. |
| homepage | https://github.com/dd-dreams/aft |
| repository | https://github.com/dd-dreams/aft |
| max_upload_size | |
| id | 1211565 |
| size | 101,664 |
aft
aft (Advanced File Transfer) is a minimal and secure tool for sharing files between two parties easily and efficiently. Works in Windows, Linux and macOS.
There are a couple of modes to use with this program:
The sender is directly connected to the receiver, and the transfer process is happening directly.
Allows using a relay instead of two devices connecting to each other directly. It allows a few benefits such as:
aft - file transfer done easily
Usage:
aft sender [--address <address>] [--port <port>] [--identifier <identifier>] <filename>
aft receiver [-p <port>]
aft download -a <address> [-p <port>] [-i <identifier>]
aft relay [-p <port>]
aft <mode> [options ...]
Positional arguments:
mode
Optional arguments:
-a --address ADDRESS Address.
-p --port PORT Port.
-i --identifier IDENTIFIER Identifier to find the receiver. Used only when its not P2P.
-v --verbose VERBOSE Verbose level. Default is 1 (warnings only). Range 1-3.
-c --config CONFIG Config location.
-v --version Show version.
-e --encryption ALGORITHM Possible values: [AES128, AES256].
-t --threads THREADS Number of threads to use.
-s --checksum Check checksum at the end. Only relevant if mode == sender.
Run cargo install aft, and you should be able to run the program immediately.
Run the following command to install aft: curl --proto '=https' -sf https://raw.githubusercontent.com/dd-dreams/aft/master/install.sh | sudo sh -s -- install.
If you want to modify the config, you can create a new file at your home directory (%USERPROFILE% for Windows and ~/ for Unix) within .aft directory, named: "config".
Look into docs/CONFIG.md to see more.
Run the following command to uninstall aft: curl --proto '=https' -sf https://raw.githubusercontent.com/dd-dreams/aft/master/install.sh | sudo sh -s -- uninstall.
Navigate to the releases page and choose your platform.
For Windows you can export the archive contents by double clicking.
For Linux and macOS you can use gzip for extracting the contents. gzip should be included by default in the OS.
Run: gzip -dN <archive>. You can export the program anywhere you like, but make sure you add it to PATH so you can easily access it.
aft program into /usr/local/bin/.aft-relay.service into /etc/systemd/system/.sudo systemctl start aft-relay.Notice that the service requires a new user called aft. If you want the service to be ran with root, remove the User=aft line, though it's not recommended for security reasons.
This service only runs the relay mode.
assets/fail2ban/aft-relay-filter.conf into /etc/fail2ban/filter.d/.assets/fail2ban/aft-relay.conf into /etc/fail2ban/jail.d/sudo systemctl restart fail2banYou can modify the bantime and maxretries in aft-relay.conf.
fail2ban only works on relay mode. fail2ban doesn't work on Windows.
Building is really simple: cargo build --release and the output will be at target/release/aft.
Licensed under either of
at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.