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") ]]