Skip to content

Commit

Permalink
Add message in output about keepalive
Browse files Browse the repository at this point in the history
Easier reference than looking it up in the readme.
  • Loading branch information
csexton committed Oct 8, 2019
1 parent 56881dc commit e7e5c69
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,11 @@ tmate -S /tmp/tmate.sock new-session -d
tmate -S /tmp/tmate.sock wait tmate-ready

# Print connection info
echo ________________________________________________________________________________
echo
echo To connect to this session copy-n-paste the following into a terminal:
tmate -S /tmp/tmate.sock display -p '#{tmate_ssh}'
echo After connecting you can run 'touch /tmp/keepalive' to disable the 15m timeout

# Wait for connection to close or timeout in 15 min
timeout=$((15*60))
Expand Down

0 comments on commit e7e5c69

Please sign in to comment.