Create multiple IPFS PeerIDs on the same node

I was trying to create multiple peerIDs on the same node to try out various commands, and because I didnt necessarily trust random peers on the internet.

I only have access to one linux box running on a virtual box.

Following the process here: https://github.com/ipfs/faq/issues/162

I created two .ipfs folders, changed the ports. However the peerID for both folders is the same.

If I have two daemons running with the same peerID, will I be able to push and fetch files from the same peerID?

No. Just generate a different peer ID for your second daemon.

You can use https://github.com/whyrusleeping/ipfs-key (or just ipfs init setting the right IPFS_PATH (if my memory is correct))

1 Like

Thanks… This worked great!