For example on GitPod you can run the following:
$ curl -fsSL https://gist.githubusercontent.com/gbraad/3fbf35c7c8c435fd6aee2dbcccedf03f/raw/fcb7081234e404c4b3c2acba564b0cb92ca9c22a/install.sh | sh
$ . start-tailproxy
which starts a tailscale daemon with userspace networking turned on, and exposing a socks5 proxy on 3215
.
$ tailproxy status
When you have netcat-openbsd
installed, you can do the following to copy a file:
$ echo "test" > test
$ scp -o "ProxyCommand /usr/bin/nc -X 5 -x localhost:3215 %h %p" ./test [email protected]:/tmp/test
test 100% 5 0.0KB/s 00:00
to a server on the network it is connected to, or login/execute a command over ssh:
$ ssh -o "ProxyCommand /usr/bin/nc -x localhost:3215 %h %p" [email protected] -C "cat /tmp/test"