Add systemd usage. Add some tip to check open ports into jump server

This commit is contained in:
Claudio Maradonna 2020-07-31 12:48:30 +02:00
parent a0b0477d95
commit 17fedbff0a
Signed by: claudiomaradonna
GPG Key ID: 0CBA58694C5680D9

View File

@ -40,6 +40,37 @@ Before run the script as root user, you should:
___
## Usage
### SystemD
```bash
## To enable at boot
systemctl enable secure-tunnel@<target>
## To disable at boot
systemctl disable secure-tunnel@<target>
## To start manually
systemctl start secure-tunnel@<target>
## To stop manually
systemctl stop secure-tunnel@<target>
```
___
## Tips
To check if the tunnel is active and the dedicated port is up, ssh into your jump host and run:
```bash
netstat -tupln | grep 20001
```
You should see your port associated to autossh process :)
___
## License
>You can check out the full license [here](https://gitlab.com/unitoo/secure-reverse-ssh-tunnel/-/blob/master/LICENSE)