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
- Connect to the edge device via SSH.
- Navigate to the
/home/rancher/.ssh
folder. - Edit the
authorized_keys
file. - Add the additional SSH key to the file, one key per line.
- Save and close the file.
- Restart the SSH service on the edge device using the following command:
sudo systemctl restart sshd