MODULES="lcm pol mon ro nbi"
-PUBLIC_KEY=${1:-$HOME/.ssh/id_rsa.pub}
-echo "Using $PUBLIC_KEY key."
-[ -f $PUBLIC_KEY ] || (echo "$PUBLIC_KEY file does not exist" && exit 1)
-PUBLIC_KEY_CONTENT=`cat $PUBLIC_KEY`
+PRIVATE_KEY=${1:-$HOME/.ssh/id_rsa}
+echo "Using $PRIVATE_KEY key."
+[ -f $PRIVATE_KEY ] || (echo "$PRIVATE_KEY file does not exist" && exit 1)
+PRIVATE_KEY_CONTENT=`cat $PRIVATE_KEY`
mkdir -p ~/.ssh/config.d
echo "" | tee ~/.ssh/config.d/osm
HostName $pod_ip
User root
# StrictHostKeyChecking no
- IdentityFile $PUBLIC_KEY" | tee -a ~/.ssh/config.d/osm
+ IdentityFile $PRIVATE_KEY" | tee -a ~/.ssh/config.d/osm
fi
done