Last active
June 26, 2019 01:04
-
-
Save wrannaman/0f3befa36f240c390730e3b68b4f409a 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
| #!/bin/bash | |
| sudo apt-get install -y software-properties-common && \ | |
| sudo add-apt-repository ppa:tmate.io/archive && \ | |
| sudo apt-get update -y --allow-unauthenticated && \ | |
| sudo apt-get install -y tmate | |
| cat /dev/zero | ssh-keygen -q -N "" | |
| tmate -S /tmp/tmate.sock new-session -d # Launch tmate in a detached state | |
| tmate -S /tmp/tmate.sock display -p '#{tmate_ssh}' # Prints the SSH connection string |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment