A Simple CLI tool to manage authorized keys on your remote servers using the Interplanetary Name System (IPNS).
- kubo-cli must be installed on all host devices.
- On the client, generate a key pair by running:
ipfs-rauth device add <device_name>
The output will contain the respective public key of the key pair generated
Device Key Generated:
do : k51qzi5uqu5dgjwe96c5wh43ux6yc63195h5d9t236j5jwphp8wk18j0zux9uk
- Copy the public key and run the following on the remote host
ipfs-rauth host init <public_key>- Finally to start the daemon run the following command or configure a
systemdservice to run on startup:
ipfs-rauth host watch &Now the remote server will watch for all and any changes at that public key.
On the client you can use any one of the following commands to alter the authorized_keys for a particular device :
ipfs-rauth access grant <device_name>
ipfs-rauth access edit <device_name>
ipfs-rauth access revoke <device_name> <user>For more information on the commands available run ipfs-rauth help or pass the --help flag for information on any subcommand.
Also note that multiple remote servers can subscribe to the same 'device' allowing you to manage all of them at once.