Skip to content

A simple CLI tool to manage auth on my remote servers using IPNS

License

Notifications You must be signed in to change notification settings

TanmayArya-1p/ipfs-rauth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ipfs-rauth

A Simple CLI tool to manage authorized keys on your remote servers using the Interplanetary Name System (IPNS).

Dependencies

  • kubo-cli must be installed on all host devices.

Usage

  • 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 systemd service 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.

About

A simple CLI tool to manage auth on my remote servers using IPNS

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages