Tailscale is a Mesh VPN service based on the WireGuard protocol - https://www.tailscale.com.
Any devices logged into the same Tailnet are accessible form each other.
For Linux machines any files received are pulled down as root
into the Tailscale directory.
There are CLI commands to send/receive files - https://tailscale.com/kb/1106/taildrop?tab=linux
I have created a script created to simplify the usage of these commands (see /scripts/taildrop.sh
)
Files transferred to a Linux machine are by default owned by root
and put in the Tailscale directory. This script will transfer them from there to the ~/Downloads
directory. Usage is as below. If files are already in the Tailscale directory it will transfer them and exit. If no files are in the Tailscale directory it will sit waiting for files to be transferred via the Tailnet and then move them across.
~/scripts/tailnet.sh r
Use the below command to send files to another device on the Tailnet. It will show a list of currently active devices, just pick this to select the target device.
~/scripts/tailnet.sh s example.txt