(C-x means ctrl+x, M-x means alt+x)
The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf
:
#!/bin/bash | |
# Start/stop an EC2 instance to use as a ssh tunnel | |
# requires: 1. the aws package locally -- sudo apt-get install awscli | |
# 2. run `aws configure` to config aws environment beforehand | |
# | |
# usage: ./tunnel.sh start (spin up EC2 and create the tunnel) | |
# ./tunnel.sh stop (stop the EC2 instance to save money) | |
# ./tunnel.sh status (show EC2 instance detail) | |
# ./tunnel.sh resume (in case your tunnel is interrupted but the EC2 instance is still running) |