-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sys/net/application_layer: add telnet server module & example #16723
Conversation
69ddeb8
to
ff8fd67
Compare
a0c8bae
to
083c195
Compare
083c195
to
eb945bd
Compare
eb945bd
to
8828119
Compare
Shoud there maybe be a big friendly in-code warning about this? |
8828119
to
2173c1f
Compare
Ping? |
Probably primarily someone who really supports it. I won't block this on my own (for lack of quick alternatives), but I still think it's a bad idea to have around, and I won't sign off on it. Proposal that came up during the sprint today: Having this as an out-of-tree contrib module might be a good idea. It'd be something that only happens when users very actively opt in, would be an opportunity to hone and show off our ability to use modules from outside, and also work as a showcase or scaffolding that people can build other stuff from (like, not using console but showing videos). |
Zephyr has Telnet implemented as a shell backend (so not just that one example) FreeRTOS+TCP has TCP IO for CLI as one of their prime examples |
I can test tomorrow, then this can get it. I'm pretty sure that nobody uses this by accident or unaware of security implications with the big fat warning an the |
please rebase and squash |
2a5d4ac
to
2e46e4a
Compare
same54-xpro
native
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK. Code looks good, @benpicco provided testing results, and child safety measures to prevent accidental or uninformed use are in place.
Thank you for the review! 😃 |
Contribution description
Quite often a remote shell would be handy to have. Telnet is a simple and ubiquitous protocol to achieve just that, on most systems no additional tools are needed.
Telnet is entirely unencrypted and we do no authentication, so only use this for debugging. Yet for debugging, having remote access to a sensor can be pretty useful.
Limitations
does not work onnative
Testing procedure
There is an example application in
It will print it's IP address via UART, connect to it using the
telnet
utility:Issues/PRs references
based on benemorius@ab97e2d
#16822 is needed to work on
native