- By Edmond Lau
- Highly Recommended 👍
- http://www.theeffectiveengineer.com/
- They are the people who get things done. Effective Engineers produce results.
#!/bin/bash | |
# ssh-multi | |
# D.Kovalov | |
# Based on http://linuxpixies.blogspot.jp/2011/06/tmux-copy-mode-and-how-to-control.html | |
# a script to ssh multiple servers over multiple tmux panes | |
starttmux() { | |
if [ -z "$HOSTS" ]; then |
#!/bin/sh | |
# | |
# Step 1. Install proctools to use "pgrep" command. | |
# | |
# Step 2. Configure SSH_HOST, SSH_USER, SOCKS_PROXY_PORT, and NW_SERVICE variables. | |
# | |
SSH_HOST=remotehost | |
SSH_USER=user | |
SOCKS_PROXY_HOST=localhost | |
SOCKS_PROXY_PORT=1080 |