joininbox/scripts/jam-remote/ssh-port-forward.sh
openoms ee21910681
Install Jam on a linux desktop and connect to a remote Joininbox (#99)
* add files to install jam to connect remotely
* update jam and nginx conf
* use ${USERNAME} consistently
* jam update to v0.1.1
* use dergigi's pubkey to verify
* docs update
2022-10-09 13:29:20 +01:00

19 lines
436 B
Bash

#!/bin/bash
# ssh -L local_port:destination_server_ip:remote_port ssh_server_hostname
# ports: 28283 28183 62601
if [ $#1 -eq 0 ];then
echo
echo "# Input the IP address of your JoininBox instance:"
read joininboxip
else
joininboxip=$1
fi
command="ssh -L 62601:${joininboxip}:62601 -L 28283:${joininboxip}:28283 -L 28183:${joininboxip}:28183 joinmarket@${joininboxip}"
echo "Running:"
echo "$command"
# run command
$command