Skip to content

Instantly share code, notes, and snippets.

while getopts ":a:k:" opt; do
case ${opt} in
a) TOKEN=$OPTARG;;
k) SKEY=$OPTARG;;
*) echo "Usage: [-p port] [-a ngrok auth token] [-k ssh rsa public key]"
;;
esac
done
apt-get -q install openssh-server
echo "PermitRootLogin yes" >> /etc/ssh/sshd_config