Enabling SSH password authentication

This article explains how to enable the classic username / password authentification for SSH in k3os
DANGER: NOT RECOMMENDED FOR PRODUCTION! USE DEFAULT BEHAVIOR WITH CERTIFICATES INSTEAD

By default, k3OS only allows SSH connections to be made using certificates for security purposes. However, we understand that creating a public key infrastructure can be overwhelming for some mechanical engineers and programmers. As a result, it may be useful to enable password authentication for k3OS in a development environment.

Prerequisites

  • Edge device running k3OS
  • Physical access to that device

Tutorial

Access the edge device using a computer with a screen and keyboard. Log in with the username rancher and password rancher. In the file /etc/ssh/sshd_config, set the value of PasswordAuthentication to yes and restart the sshd service. You can use the following command:

sudo vim /etc/ssh/sshd_config -c "%s/PasswordAuthentication  no/PasswordAuthentication
Last modified February 17, 2023: update (#208) (ea731fc)