Set the following Env Vars:
REMOTE_ACCESS_SSH_PUB_KEY
: an SSH Public Key - you'll be able to SSH into the container with the private key of this public key. You can find your default public key on your Mac/Linux with:cat $HOME/.ssh/id_rsa.pub
NGROK_CONFIG
: a fullngrok
config
ngrok
config example:
authtoken: NgrokAuthToken1234
tunnels:
ssh:
addr: 2222
proto: tcp
You can get your Ngrok Auth Token at: https://dashboard.ngrok.com/auth
Once ngrok
is started in the build you can find the SSH IP on ngrok at: https://dashboard.ngrok.com/status
To SSH into the Build VM / container: ssh root@0.tcp.ngrok.io -p PORT
(you can find the PORT and the IP at https://dashboard.ngrok.com/status)
@sophiataskova there's no password. If SSH asks for password that means that no SSH key matched. That means that you forgot to activate the right SSH key.
To ensure the right SSH key is activated on your Mac/PC on Unix systems you should run:
Of course if you want to use a different SSH key you should change the path for
ssh-add $HOME/.ssh/id_rsa
.If you'd have any questions just let me know! :)