├── README.md └── colab_free_vps.ipynb /README.md: -------------------------------------------------------------------------------- 1 | # colab-free-vps 2 | A Free Linux VPS from Colab 3 | 4 | 5 | open this link and follow the procedures 6 | 7 | [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/gokulapap/colab-free-vps) 8 | -------------------------------------------------------------------------------- /colab_free_vps.ipynb: -------------------------------------------------------------------------------- 1 | { 2 | "nbformat": 4, 3 | "nbformat_minor": 0, 4 | "metadata": { 5 | "colab": { 6 | "name": "colab-free-vps.ipynb", 7 | "provenance": [] 8 | }, 9 | "kernelspec": { 10 | "name": "python3", 11 | "display_name": "Python 3" 12 | }, 13 | "language_info": { 14 | "name": "python" 15 | } 16 | }, 17 | "cells": [ 18 | { 19 | "cell_type": "code", 20 | "metadata": { 21 | "id": "uC-OXOiq8koc" 22 | }, 23 | "source": [ 24 | "#Mounting google drive for storing the files\n", 25 | "from google.colab import drive\n", 26 | "drive.mount(\"/content/drive\")\n", 27 | "\n", 28 | "#Installing the module\n", 29 | "!pip install colab_ssh\n", 30 | "\n", 31 | "# copy and paste your ngrok token here\n", 32 | "NGROK_TOKEN = 'xxxxxxxxxxxxxxxxxxxxx'\n", 33 | "\n", 34 | "from colab_ssh import launch_ssh\n", 35 | "launch_ssh(NGROK_TOKEN, 'YOUR PASSWORD HERE')" 36 | ], 37 | "execution_count": null, 38 | "outputs": [] 39 | }, 40 | { 41 | "cell_type": "markdown", 42 | "metadata": { 43 | "id": "D7cysyMN-A-q" 44 | }, 45 | "source": [ 46 | "Procedures:\n", 47 | "===========\n", 48 | "\n", 49 | "1. Go to ngrok dashboard and copy the ngrok token and replace it above (NGROK_TOKEN)\n", 50 | "2. Run the above shell and it will generate an link , click on it and select your google account and authorize and it will create an token copy and paste here\n", 51 | "3. Then press Enter and ngrok will generate an url and port number\n", 52 | " \n", 53 | " For Example,\n", 54 | "\n", 55 | " x.tcp.ngrok.io - [x may be some number] \n", 56 | " \n", 57 | " port - some random port number\n", 58 | "\n", 59 | "4. Then connect to the free vps by \n", 60 | "\n", 61 | " ssh root@[1-8].tcp.ngrok.io -p (port)" 62 | ] 63 | } 64 | ] 65 | } --------------------------------------------------------------------------------