besu-pro-testnet icon indicating copy to clipboard operation
besu-pro-testnet copied to clipboard

Users don't know what their enode is

Open eum602 opened this issue 5 years ago • 0 comments

It would be grateful to have a file where the enode is specified.

Manually users can know their enode by executing the following steps:

  • Enter to your remote machine via ssh:
  • Enter as root: sudo -i
  • Execute: key=$(pantheon --data-path=/root/lacchain/data public-key export-address --to=/root/lacchain/data/nodeAddress | grep -oE "0x[A-Fa-f0-9]*" | sed 's/0x//');ip=$(dig +short myip.opendns.com @resolver1.opendns.com 2>/dev/null || curl -s --retry 2 icanhazip.com);port=60606; echo "enode://${key}@${ip}:${port}" > /root/lacchain/data/enode
  • Now easily print your enode: cat /root/lacchain/data/enode

eum602 avatar Oct 25 '19 17:10 eum602