# Pastebin ijKz7HWx IPFS_HASH=`ipfs add -r client | tail -1 | cut -d ' ' -f2` ipfs daemon & sleep 2 ipfs swarm connect /ip4/##.###.###.###/tcp/4001/ipfs/Qm---------------------------------------------U ssh -t ubuntu@server \ -i /key.pem \ "su -c 'ipfs get $IPFS_HASH'; su -c 'ipfs pin add --recursive $IPFS_HASH'" wget http://##.###.###.###/ipfs/"$IPFS_HASH" rm -f $IPFS_HASH killall ipfs