Skip to content

Instantly share code, notes, and snippets.

@ucalyptus2
Created March 10, 2023 08:09
Show Gist options
  • Save ucalyptus2/7d89617951d6d3c54c995ff8b4878ca6 to your computer and use it in GitHub Desktop.
Save ucalyptus2/7d89617951d6d3c54c995ff8b4878ca6 to your computer and use it in GitHub Desktop.
wget -q -c -nc https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-amd64.zip
unzip -qq -n ngrok-stable-linux-amd64.zip
apt-get install -qq -o=Dpkg::Use-Pty=0 openssh-server pwgen > /dev/null
echo root:$password | chpasswd
mkdir -p /var/run/sshd
echo "PermitRootLogin yes" >> /etc/ssh/sshd_config
echo "PasswordAuthentication yes" >> /etc/ssh/sshd_config
echo "LD_LIBRARY_PATH=/usr/lib64-nvidia" >> /root/.bashrc
echo "export LD_LIBRARY_PATH" >> /root/.bashrc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment