Add systemd usage. Add some tip to check open ports into jump server
This commit is contained in:
parent
a0b0477d95
commit
17fedbff0a
31
README.md
31
README.md
@ -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
|
## License
|
||||||
>You can check out the full license [here](https://gitlab.com/unitoo/secure-reverse-ssh-tunnel/-/blob/master/LICENSE)
|
>You can check out the full license [here](https://gitlab.com/unitoo/secure-reverse-ssh-tunnel/-/blob/master/LICENSE)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user