k3OS ·

Adding Additional SSH Keys to k3OS

This tutorial explains how to add additional SSH keys to k3OS, allowing multiple users to access an edge device.

Adding Additional SSH Keys to k3OS
⚠️
Please note that k3OS is deprecated. We recommend switching to flatcar instead.

If multiple users need to access an edge device running k3OS, additional SSH keys can be added to allow them to connect via SSH. This guide outlines the steps to add new SSH keys.

Prerequisites

  • Edge device running k3OS
  • SSH access to the device
  • SSH/SFTP client
  • Public and private keys suitable for SSH access

Instructions

  1. Connect to the edge device via SSH.
  2. Navigate to the /home/rancher/.ssh folder.
  3. Edit the authorized_keys file.
  4. Add the additional SSH key to the file, one key per line.
  5. Save and close the file.
  6. Restart the SSH service on the edge device using the following command: sudo systemctl restart sshd

Read next

Share, Engage, and Contribute!

Discover how you can share your ideas, contribute to our blog, and connect with us on other platforms.