January 2020
Intermediate to advanced
530 pages
11h 11m
English
Let's generate a secret key for the network. Only nodes with this secret key will be able to connect and share documents to our private IPFS network.
Run the following command to download the Swarm key generator utility:
go get -u github.com/Kubuxu/go-ipfs-swarm-key-gen/ipfs-swarm-key-gen
Run the following command to generate a new Swarm key for Node1:
ipfs-swarm-key-gen & > ~/.ipfs/swarm.key
Node2 will refer to this key for connecting to the private IPFS network. Copy the key file (swarm.key) to the folder for Node 2, ~/.ipfs2. The key will be available under the path for the first node. This in my case is /home/ishan/.ipfs/swarm.key.
In my case, this is /home/ishan/.ipfs2/.
Read now
Unlock full access