Skip to content

Instantly share code, notes, and snippets.

@aanari
Created July 22, 2022 15:42
Show Gist options
  • Save aanari/0dee561585a7e6e73b7adafa2bff0e63 to your computer and use it in GitHub Desktop.
Save aanari/0dee561585a7e6e73b7adafa2bff0e63 to your computer and use it in GitHub Desktop.
SSH with clipboard sync
#!/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