From 1664e4cbd0ef60640573e3b821321a77d642903e Mon Sep 17 00:00:00 2001 From: fred Date: Sun, 11 Feb 2024 02:36:33 +0100 Subject: [PATCH] Make Station publish SSH port on "/x/ssh-$(IPFSNODEID)" --- tools/ipfs_P2P_forward.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/ipfs_P2P_forward.sh b/tools/ipfs_P2P_forward.sh index 736d82ab..139e1407 100755 --- a/tools/ipfs_P2P_forward.sh +++ b/tools/ipfs_P2P_forward.sh @@ -14,8 +14,10 @@ YOU=$(myIpfsApi) || er+=" ipfs daemon not running" [[ "$YOU" == "" || "$IPFSNODEID" == "" ]] && echo "ERROR : $er " && exit 1 ######################################################################## -# Make Station publish SSH port on "/x/ssh-$(hostname)" +# Make Station publish SSH port on "/x/ssh-$(IPFSNODEID)" zuid="$(hostname -f)" +zuid=${IPFSNODEID} + if [[ $zuid ]] then if [[ ! $(cat ~/.ssh/authorized_keys | grep "fred@ONELOVE") ]]