Make Station publish SSH port on "/x/ssh-$(IPFSNODEID)"

This commit is contained in:
fred 2024-02-11 02:36:33 +01:00
parent 99d44c8291
commit 1664e4cbd0
1 changed files with 3 additions and 1 deletions

View File

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