keeping PORT
This commit is contained in:
parent
8beaadc0c2
commit
083d1af27b
|
@ -39,7 +39,9 @@ then
|
|||
ipfs p2p listen /x/$G1PUB-ssh /ip4/127.0.0.1/tcp/22
|
||||
|
||||
## SEND MESSAGE
|
||||
PORT="109${RANDOM:0:2}" # RANDOM PORT
|
||||
PORT="10${RANDOM:0:3}" # RANDOM PORT
|
||||
[[ ! -f /tmp/ssh.forward.port ]] echo "$PORT" > /tmp/ssh.forward.port
|
||||
PORT=$(cat /tmp/ssh.forward.port)
|
||||
echo "ipfs p2p forward /x/$G1PUB-ssh /ip4/127.0.0.1/tcp/$PORT /p2p/$IPFSNODEID
|
||||
ssh $USER@localhost -p $PORT" > /tmp/ssh.forward
|
||||
~/.zen/astrXbian/zen/jaklis/jaklis.py -k ~/.zen/secret.dunikey send -d Ee1n3hDv9vunfd6m3LW6XeYg7bnt5aaRn9EjqnBe8GNS -t "SSH-OPEN" -f /tmp/ssh.forward
|
||||
|
|
Loading…
Reference in New Issue