Skip to content

Instantly share code, notes, and snippets.

@him229
Last active October 21, 2020 18:23
Show Gist options
  • Save him229/fe4baab43b305474e0a542f7521f3ff5 to your computer and use it in GitHub Desktop.
Save him229/fe4baab43b305474e0a542f7521f3ff5 to your computer and use it in GitHub Desktop.
ssh-keygen -t rsa -N "" -f ~/.ssh/id_rsa <<< y > /dev/null 2>&1
apt-get update > /dev/null 2>&1
apt-get install -y tmate > /dev/null 2>&1
apt-get install -y locales-all
cd /local
tmate -S /tmp/tmate.sock new-session -d
tmate -S /tmp/tmate.sock wait tmate-ready
echo " "
echo "======================================================================"
echo "You can get a shell to the Reploy instance through the web link or SSH"
echo " "
echo "Web link"
tmate -S /tmp/tmate.sock display -p "#{tmate_web}"
echo " "
echo "SSH"
tmate -S /tmp/tmate.sock display -p "#{tmate_ssh}"
echo "======================================================================"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment