Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/equals215/autossh-tunnel-systemd
A very very very light script to create and run a permanent SSH tunnel via serveo.net using systemd.
https://github.com/equals215/autossh-tunnel-systemd
bash serveo ssh
Last synced: 2 months ago
JSON representation
A very very very light script to create and run a permanent SSH tunnel via serveo.net using systemd.
- Host: GitHub
- URL: https://github.com/equals215/autossh-tunnel-systemd
- Owner: equals215
- Created: 2019-04-25T15:49:14.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2019-05-13T16:24:15.000Z (over 5 years ago)
- Last Synced: 2023-09-05T23:28:44.165Z (over 1 year ago)
- Topics: bash, serveo, ssh
- Language: Shell
- Homepage: http://serveo.net/
- Size: 5.86 KB
- Stars: 6
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# autossh-tunnel-systemd
A very very very light script to create and run a permanent SSH tunnel via serveo.net using systemd.
Not to mention this is only usable for systemd provided kernels.## Usage
USAGE: ./autotunnel [-h/--help] alias-name local-port remote-port
DESCRIPTION :
-h/--help Display this helper
alias-name The alias you want to give to your tunnel
local-port The targeted local port for your tunnel
remote-port The targeted remote port for your tunnelThe script must be run under root or sudo permisions.
## Serveo Documentation Extracts
### How does it work?
Serveo is an SSH server just for remote port forwarding. When a user connects to Serveo, they get a public URL that anybody can use to connect to their localhost server.
### SSH forwardingRequest forwarding for port 22, and serveo.net will act as a jump host, allowing you to conveniently SSH into your machine (a unique alias is required):
Then you can establish an SSH connection using serveo.net as an intermediary like this:
> ssh -J serveo.net user@myalias
The -J option was introduced in the OpenSSH client version 7.3. If you have an older client, you can use the ProxyCommand option instead:
> ssh **-o ProxyCommand="ssh -W myalias:22 serveo.net"** user@myalias
### Generic TCP forwarding
If you request a port other than 80, 443, or 22, raw TCP traffic will be forwarded. (In this case, there's no way to route connections based on hostname, and the alias, if specifed, will be ignored.)