Created
November 7, 2018 16:28
-
-
Save dsamarin/4bddfe601783113e042893e9d5458566 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 | |
SSH_HOST=dsamar.in | |
SSH_SOCKET=~/.ssh/ihs.dsamar.in.sock | |
SSH_TUNNEL=3306:localhost:3306 | |
ssh -fMnNT -S "$SSH_SOCKET" -L "$SSH_TUNNEL" "$SSH_HOST" | |
gnucash mysql://[email protected]/ihs | |
ssh -S "$SSH_SOCKET" -O exit "$SSH_HOST" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment