https://github.com/mevdschee/cli-support
Shell script to offer remote linux CLI support over SSH to users behind a NAT
https://github.com/mevdschee/cli-support
Last synced: 8 months ago
JSON representation
Shell script to offer remote linux CLI support over SSH to users behind a NAT
- Host: GitHub
- URL: https://github.com/mevdschee/cli-support
- Owner: mevdschee
- License: mit
- Created: 2017-08-14T18:51:59.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-08-17T23:27:30.000Z (over 8 years ago)
- Last Synced: 2025-04-26T15:02:38.741Z (9 months ago)
- Language: Shell
- Homepage:
- Size: 21.5 KB
- Stars: 3
- Watchers: 3
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# cli-support
This shell script allows you to offer remote linux command line support over SSH to your clients that are behind a NAT.
It is comparable to a reverse shell, but it does not require the support agent to setup a listening port first.
The script allows the user to see what is executed and also allows the user to interact (and change the screen size).
### Requirements
- bash
- socat
- tmux
### Installation
Execute the following commands:
sudo apt install socat tmux
curl https://raw.githubusercontent.com/mevdschee/cli-support/master/socat.sh -O socat.sh
chmod 755 socat.sh
Now you are ready to run the client.
### Usage
The client that needs support should run:
./socat.sh user@hostname
You (the support agent) should run on the server:
socat file:`tty`,raw,echo=0 tcp-connect:localhost:6000
The script shares the session in such a way that both parties can view AND type and that the client can resize the terminal.