Prerequisites
- Docker application needs to be running
Procedures
Check if you have an SSH key and copy it:
cat ~/.ssh/id_rsa.pub
- If the output is blank, create a public key:
-
ssh-keygen -b 2048 -t rsa
Add the custom configuration
- Set up a directory for configuration settings:
-
mkdir /tmp/config
-
- Add the SSH Public key to the "authorized_keys" file:
-
cat <PUBLIC_KEY_PATH> > /tmp/config/authorized_keys
-
- Insert the ZEDEDA GUI FQDN into the
server
file by running:
-
cat <<EOF > /tmp/config/server
zedcloud.zededa.net
EOF zedcloud.zededa.net
is being used in this example.
-
- Add the configuration to the "global.json" file by running:
-
cat <<EOF > /tmp/config/global.json
{
"GlobalSettings": {
"debug.enable.ssh": {
"Key": "debug.enable.ssh",
"ItemType": 3,
"StrValue": "true"
}
}
}
EOF
-
Download and create the custom image installer
- Execute the Docker command to generate the image file for the required EVE version. In the example below, the latest version will be downloaded.
-
docker run -v /tmp/config:/in lfedge/eve:latest -f raw installer_raw > installer-ssh.raw
-
- Refer to Flash your EVE-OS image for guidance on installing EVE-OS onto your USB device.
Additional information
Connect to your device through SSH using your private key. Run the following command.
ssh -i YOUR_PRIVATE_KEY_PATH root@DEVICE_IP