This post shows an interesting way to use Okteto’s container with the help from Ngrok and Github. By default, when you create a namespace and deploy a project to it, you will get a container running on four core CPU with 32GB memory machine. You wont be able to have console and root access to it, and it is even not opened to Internet. With the help of Ngrok and Github, all those become possible.
Note: This usage is violating Oketeo TOS and your Okteto account might be got suspended.
Got to github project majalaya/xssh:
Fork it into your own Repository
Go to https://ngrok.com/. Log in or sign up if you do not have an account
Click Your Authtoken link and copy your ngrok token.
Change your token value in config.sh file from your xssh repository
Log into Okteto.com with your Github account
Launch Dev Environment
Choose from Github, then select your xssh repository
Select main branch then launch
Your xssh project will be deployed in a minute.
You will be able to see a new agent shows in Ngrok’s Tunnels menu page.
Create Your Own Image
docker run -d -it ubuntu bash
docker exec -it xxxxxxxxxxxxxxxx bash
apt install nano -y
apt install wget -y
apt install unzip -y
apt install ssh -y
service ssh restart
ngrok authtoken 2C8vUaTWbwplW7bMlWggllXwY7V_2vJaHYXyYZUbiuxRrXuzc
nohup ngrok tcp 22
apt install htop