jmlzone / PiPtr

Repeater controller
7 stars 4 forks source link

remote command line ideas #14

Open jmlzone opened 7 years ago

jmlzone commented 7 years ago

There is now a rudimentary remote command line on a tcp socket. it should: 1) Have a save command to write out the config xml 2) be switched form an insecure telnet type connection to a ssh like authentication. 3) I think non stirng like value may have problems and i need the type conversions like in xmlio. 4) The dictionary method used here and the xmlio methods should be resolved and common code moved out to a new class.

What else?

scivision commented 7 years ago

Python SSH Server (one of many choices) https://github.com/paramiko/paramiko/blob/master/demos/demo_server.py

KB1RD commented 7 years ago

You could also make a new user and allow login through the built-in SSH service and change the default login shell. This would make it impossible to run commands through bash, but would allow you to run commands through a custom shell, possibly written in Python. Some inter-process communication would be required though to send data back to the main process.

jmlzone commented 6 years ago

Current PiPtr code opens a TCP port and supports a few basic commands, get and set values, enter "touch tone" commands to either port, say the XML config. there is currently no security layer. Anyone wishing to contribute to this please have a look at tcpSocketCmd.py