How to enable and disable SSH for an Edge Device

This article describes how to enable an edge node for SSH access.

Prerequisites

Docker must be running on your machine.

Enable SSH for an edge device

  1. Check if you have an SSH key.
    • cat ~/.ssh/id_rsa.pub
      • If the output is blank, create a public key.
        ssh-keygen
  2. Copy the output of the "cat" command.
  3. Run the ZCLI container.
    docker run -it -v $PWD:/root zededa/zcli:latest
  4. Log in to the ZCLI
  5. Enable SSH access by pushing the SSH key to the device.
    zcli edge-node update EDGE_NODE --config=debug.enable.ssh:"YOUR_PUBLIC_KEY"
  6. Exit the ZCLI to your machine's standard command line.
    exit
  7. Connect to the device via SSH using the corresponding private key.
    ssh -i YOUR_PRIVATE_KEY_PATH root@DEVICE_IP

Disable SSH for an edge device

Follow these steps to disable SSH for an edge device.

  1. Log in to the ZCLI
  2. Disable SSH for your edge device.
    zcli edge-node update EDGE_NODE --config=debug.enable.ssh:""
Was this article helpful?
3 out of 3 found this helpful

Articles in this section

See more