Scripts for downloading torrents in Germany (and other countries where you can get fined for it)
The script spins up a box in the cloud (Digital Ocean) and downloads the torrent there. Once the torrent is done it will be downloaded to your local box via secure ssh connection (rsync). After that the remote machine is deleted.
- Digital Ocean account
- add your own ssh key to Digital Ocean
- configured Digital Ocean client (doctl)
- get a torrent
# list my ssh keys
$ doctl compute ssh-key list
ID Name FingerPrint
XXYYZZ my-key 5a:28:6f:.....
# export my ssh-key id
$ export SSH_KEY_ID=XXYYZZ
# use the correct key
$ ssh-add ~/.ssh/my-key
# download a torrent
$ ./get-torrent.sh "magnet:?xt=urn......." && say 'Download completed!'
- autogenerate the ssh key