This bash install openssh-server on colab.
fill connection info to colab, and than colab create ssh tunnel to your server,
therefor you can connect into colab via ssh tunnel from your server.
Example:
!wget -qO- https://raw.githubusercontent.com/DevinY/colab_ssh/master/colab_sshserver.sh| bash -s user ip port public_key
command:
!wget -qO- https://raw.githubusercontent.com/DevinY/colab_ssh/master/colab_sshserver.sh| bash -s
paramter:
user ip port public_key