veilid/scripts/debug_ssh.sh

13 lines
375 B
Bash
Raw Normal View History

2023-03-04 20:16:03 +00:00
#!/bin/bash
SCRIPTDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
SSHHOST=$1
if [[ "$SSHHOST" == "" ]]; then
2023-03-04 21:32:50 +00:00
SSHHOST="root@bootstrap-1.dev.veilid.net"
2023-03-04 20:16:03 +00:00
fi
echo Copying debug script
scp -q $SCRIPTDIR/debug.sh $SSHHOST:/tmp/debug.sh
echo Connecting to debug server
ssh -t $SSHHOST -L 6969:127.0.0.1:6969 -L 6970:127.0.0.1:6970 'bash /tmp/debug.sh'