Skip to content

Instantly share code, notes, and snippets.

@ceaksan
Last active November 18, 2017 18:37
Show Gist options
  • Select an option

  • Save ceaksan/7fbd320eb3256bdb87bae41949f2baf3 to your computer and use it in GitHub Desktop.

Select an option

Save ceaksan/7fbd320eb3256bdb87bae41949f2baf3 to your computer and use it in GitHub Desktop.
#!/bin/bash
# <bitbar.title>SSH Tunnel</bitbar.title>
# <bitbar.version>v1.0</bitbar.version>
# <bitbar.author>Ceyhun Enki Aksan</bitbar.author>
# <bitbar.author.github>ceaksan</bitbar.author.github>
# <bitbar.desc>-</bitbar.desc>
# <bitbar.dependencies></bitbar.dependencies>
# <bitbar.image></bitbar.image>
read -p 'Server IP: ' serverIP
ssh -D 8123 -f -C -q -N "root@"$serverIP
echo "Connected"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment