Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jiangshan00001/term_from_nat
connect a terminal inside a nat. used when you want somebody to help you, but he could not connect to your linux because your computer is inside a nat.
https://github.com/jiangshan00001/term_from_nat
Last synced: about 16 hours ago
JSON representation
connect a terminal inside a nat. used when you want somebody to help you, but he could not connect to your linux because your computer is inside a nat.
- Host: GitHub
- URL: https://github.com/jiangshan00001/term_from_nat
- Owner: Jiangshan00001
- License: gpl-3.0
- Created: 2021-10-04T03:10:16.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2021-10-11T13:39:06.000Z (about 3 years ago)
- Last Synced: 2024-10-29T02:39:14.113Z (9 days ago)
- Language: Python
- Size: 38.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# term_from_nat
=========================
connect a terminal inside a nat.
used when you want somebody to help you, but he could not connect to your linux because your computer is inside a nat.it is somehow like the ssh, the different is that:
the **ssh** is: client connect to server. **do something in the server computer.**
this **term_from_nat** is: client connect to server. **do something in the client computer.**
used when:
----------------```
1 when you want somebody to do something in you linux computer
2 but he could not connect to your linux because your computer is inside a nat
```how to use:
-----------------------------
```
COMPUTER1(one nat):
1. pip install term_from_nat
2. python3 -m term_from_nat or just type: term_from_nat
will show some tips:
client started, use:
python3 -m term_from_nat -s -t 378885
to start the server
COMPUTER2(another nat):
1. pip install term_from_nat
2. python3 -m term_from_nat -s -t 378885
or just: term_from_nat -s -t 378885that's all.
```
TBD:
1. windows support. currently only linux is supported as python pty package limit.
2. pty resize support. currently it uses the default pty columns x rows and not do a resize.
3. one stable mqtt broke.
4. mqtt auth support.old/deprecated usage:
normal usage uses a bridge to connect each-other.
if you have a public ip server, then, you could run this, connect each other without bridge.
1. COMPUTER1: run python3 server_lite.py {server_port} on one computer that has a public ip.
2. COMPUTER2: run python3 client_lite.py {server_ip} {server_port} on the computer that inside a nat
3. COMPUTER1: type you command.