Skip to content

Commit

Permalink
Fix password based ssh login issue (#182)
Browse files Browse the repository at this point in the history
## Description


The previous sed command stopped working. The Ubuntu cloud image seems to write a different file for ssh settings now. This fixes the issue of ssh not allowing password based logins.

## Why is this needed



Fixes: #

## How Has This Been Tested?





## How are existing users impacted? What migration steps/scripts do we need?





## Checklist:

I have:

- [ ] updated the documentation and/or roadmap (if required)
- [ ] added unit or e2e tests
- [ ] provided instructions on how to upgrade
  • Loading branch information
mergify[bot] authored Feb 21, 2024
2 parents a2b5255 + 7aa606f commit b4d7bf8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion vagrant/.env
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ MACHINE1_IP=192.168.56.43
MACHINE1_MAC=08:00:27:9e:f5:3a

# https://github.com/tinkerbell/charts/pkgs/container/charts%2Fstack
HELM_CHART_VERSION=0.4.2
HELM_CHART_VERSION=0.4.3
KUBECTL_VERSION=1.28.3
K3D_VERSION=v5.6.0
2 changes: 1 addition & 1 deletion vagrant/template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ spec:
FS_TYPE: ext4
CHROOT: y
DEFAULT_INTERPRETER: "/bin/sh -c"
CMD_LINE: "ssh-keygen -A; systemctl enable ssh.service; sed -i 's/^PasswordAuthentication no/PasswordAuthentication yes/g' /etc/ssh/sshd_config"
CMD_LINE: "ssh-keygen -A; systemctl enable ssh.service; echo 'PasswordAuthentication yes' > /etc/ssh/sshd_config.d/60-cloudimg-settings.conf"
- name: "disable-apparmor"
image: quay.io/tinkerbell-actions/cexec:v1.0.0
timeout: 90
Expand Down

0 comments on commit b4d7bf8

Please sign in to comment.