Agent around tmate to remotely connect to devices via ssh.
The daemon connects to a remote AMQP broker and provides various control and monitoring interfaces.
The AMQP broker parameters can be configured via the ~/.config/device_tmate_agent/config
file. This config file is loaded
on startup.
URI: thing.{thing_id}.tmageagent.tunnel_info
DataModel:
Request
--------
{}
Response
--------
{
'status': <int>,
'error': <str>,
'tunnel_info': <str>
}
A call to this RPC returns the required information to perform remote ssh connection to the device.
URI: thing.{thing_id}.tmageagent.restart
DataModel:
Request
--------
{}
Response
--------
{
'status': <int>,
'error': <str>,
'tunnel_info': <str>
}
A call to this RPC forces a restart of the tunnel session and returns the new tunnel information.
URI: thing.{thing_id}.tmageagent.start
DataModel:
Request
--------
{}
Response
--------
{
'status': <int>,
'error': <str>,
'tunnel_info': <str>
}
URI: thing.{thing_id}.tmageagent.stop
DataModel:
Request
--------
{}
Response
--------
{
'status': <int>,
'error': <str>
}
Heartbeats are sent (by default) to the thing.{thing_id}.tmateagent.heartbeat
topic with a frequency of 0.1Hz (by default).
Data Model
{
'timestamp': <float>
}