Last active
October 21, 2020 18:23
-
-
Save him229/fe4baab43b305474e0a542f7521f3ff5 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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