You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+27
Original file line number
Diff line number
Diff line change
@@ -53,6 +53,33 @@ bash ssh_tunnel.sh
53
53
54
54
This command runs the script in the Bash shell environment.
55
55
56
+
## Example Usage
57
+
58
+
### Local to Remote Tunnel
59
+
60
+
1. Select "Local to Remote" tunneling option from the menu.
61
+
2. Enter the local port from which the tunnel will originate.
62
+
3. Provide the remote user's username and the hostname or IP address of the remote machine.
63
+
4. Enter the port on the remote machine to which the tunnel will connect.
64
+
5. Upon successful setup, the script will display a success message confirming the creation of the tunnel.
65
+
* try to choose same ports for both local and remote servers(your remote server must accept ssh over the choosen port)
66
+
67
+
### Remote to Local Tunnel
68
+
69
+
To create a remote-to-local tunnel, follow similar steps as above, but select the "Remote to Local" tunneling option from the menu.
70
+
71
+
### Both Sides Tunnel
72
+
73
+
For both sides of the tunnel, select the corresponding option from the menu and provide the required information for both the local-to-remote and remote-to-local connections.
74
+
75
+
### Killing Existing Tunnels
76
+
77
+
To terminate existing tunnels, select the "Kill tunnel" option from the menu and enter the local port associated with the tunnel you wish to terminate.
78
+
79
+
### Exiting the Script
80
+
81
+
To exit the script, select the "Exit" option from the menu.
82
+
56
83
## Contributing
57
84
58
85
Contributions, bug reports, and suggestions for improvements are welcome! Feel free to open an issue or create a pull request.
0 commit comments