ngrok wiil display authentication.
Ex: ./ngrok authtoken 7pbKPaaaaaaaaaaaaaaaaaaaaaYLW9bbbbbbbbbb
Type authentication token method into pc and pc will store the token.
Start secure tunnel
ngrok tcp 22
After start ngrok will appear following.
Forwarding tcp://20.tcp.ngrok.io:33333 -> localhost:80
Connect to remote machine
ssh -p 33333 20.tcp.ngrok.io
Connect to remote machine folder as local folder
sshfs -p 18001 happy@0.tcp.ngrok.io:/ /home/happy/
Send remote file to local
rsync -rvz -e 'ssh -p 12345 -o Compression=no' --progress --remove-sent-files gogo@192.168.0.1:/tmp/ok.sh .
scp -P 14367 hapy@101.tcp.ngrok.io:/home/happy/good.tar.bz2
Git clone from remote
git clone ssh://happy@0.tcp.ngrok.io:18111/home/happy/git/test
If user want to use different port service. Please login the webpage of ngrok again will get another authentication token, then repeat above step again. PC will create another port service.
Ref
0 意見:
張貼留言