Created
July 22, 2022 15:42
-
-
Save aanari/0dee561585a7e6e73b7adafa2bff0e63 to your computer and use it in GitHub Desktop.
SSH with clipboard sync
This file contains 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 | |
# Copy this to /usr/local/bin/remote | |
ps cax | grep lemonade> /dev/null | |
if [ $? -eq 0 ]; then | |
echo "lemonade is running." | |
else | |
echo "lemonade is not running." | |
nohup lemonade server & | |
fi | |
ssh -R 12489:127.0.0.1:12489 "$@" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment