elemental icon indicating copy to clipboard operation
elemental copied to clipboard

SSH `github`/`gitlab` auth not working after install

Open jsundqvist opened this issue 3 years ago • 1 comments

Using the following config.yaml I can ssh into the machine during the install, but not after. (It asks for passwd). Why?

#cloud-config
rancherd:
  role: cluster-init

# See https://rancher-sandbox.github.io/cos-toolkit-docs/docs/reference/cloud_init/ for a full syntax reference
stages:
  initramfs:
  - users:
      jsundqvist:
  network:
  - authorized_keys:
      jsundqvist:
      - github:jsundqvist

EDIT: Same for gitlab

jsundqvist avatar Mar 17 '22 10:03 jsundqvist

I added shell and homedir to my user according to https://github.com/rancher-sandbox/os2/issues/13:

users:
  jsundqvist:
    shell: '/bin/bash'
    homedir: '/home/jsundqvist'

While that solved the issue of not finding the homedir during the install, I still cannot ssh when booted from the installation without the ISO.

jsundqvist avatar Mar 17 '22 12:03 jsundqvist

no further reports, closing

kkaempf avatar Mar 19 '24 09:03 kkaempf