Welcome to remocon Pages
Description
remocon is an API that executes CLI commands as a registered user on a Linux system remotely through a REST API. You can now execute restricted user commands even through remote APIs.
Scope of application
- Run Docker remotely (Linux with Docker)
- One-time code execution (per-user execution)
- All commands available for Linux
License
MIT
Required
python2.7 (Official: rpm version supports centos7 and redhat7 versions)
remocon install
yum remocon install
# yum install https://github.com/saintkim4/remocon/raw/master/remocon-1.0.0-1.el7.x86_64.rpm -y
remocon Preferences
# vi /etc/remocon.conf
`[MAIN]
api_host = 192.168.0.222 -> Set to ip to service
api_port = 5000 -> Set to service port`
remocon start
# systemctl start remocon
After creating an account to run commands on a Linux syste
Create user
# useradd testman
Generate password
# passwd testman
Using remocon
Request api key for generated user
# curl -X POST http://192.168.0.222:5000/user/register -H "Content-Type:application/json" -d '{"user":"testman"}'
`{
"message": [
"1004",
"1005",
"EMghWAZxHl"
],
"status": "success"
}`
How to run the command
# curl -X POST http://192.168.0.222:5000/queue -H "Content-Type:application/json" -d '{"execcmd":"touch finished","user":"testman","key":"EMghWAZxHl"}
Support or Contact
saintkim4@gmail.com https://saintkim4.github.io/remocon/