mirror of
https://github.com/openoms/joininbox.git
synced 2026-08-13 12:33:14 +02:00
* 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
19 lines
436 B
Bash
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
|