Skip to content

SSH server

Jaume Olivé Petrus edited this page Jan 23, 2018 · 6 revisions

Lua RTOS include a port of the well-known dropbear SSH server. This allow to establish secure shell connections to any Lua RTOS device, with minimal RAM requirements.

Notes about the dropbear port:

  • Only 1 client connection is allowed.
  • Only the root user is allowed.
  • The server keys are created on the fly the first time that dropbear starts.
  • SCP transfers are not supported by now.
  • Remote SSH command execution are not supported by now.

How to use:

  1. Set your device's root password:

    /> os.pass()

    or (if shell is enabled in your device):

    /> passwd
  2. Initiate a network as usual (wifi or ethernet), and get your device's ip address:

    /> net.eth.setup(.....)
    /> net.eth.start()
    /> net.stat()

    or (if shell is enabled in your device):

    /> netstat
  3. Start the ssh server:

    /> net.service.ssh.start()
  4. From you desktop computer connect to your device through a ssh client:

    $ ssh root@device-ip
Clone this wiki locally