ssh-import-id gives bad handshake
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cloud-init |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Ubuntu 20.04 server runs with user data as below, yet it raises the error from launchpad.net
2020-04-01 17:24:18,815 ERROR HTTPSConnection
aused by SSLError(
Cloud-init v. 20.4.1-
Apparently this is the error because the host time is not yet synch up, but the ntp is also set there,
#cloud-config
ntp:
enabled: true
ntp_client: chrony
users:
- name: kevo
primary-group: users
shell: /bin/bash
sudo: ALL=(ALL) NOPASSWD:ALL
groups: users
ssh_import_id: aniecki
lock_passwd: true
ssh_pwauth: false
Hello Adam and thanks for this bug report. Does chrony actually set the system time after a while, or is this a permanent failure of chrony as an NTP client? In other words, is chrony set up correctly and this is a race-like issue between chrony and ssh-import-id, or is chrony broken on the system after cloud-init set it up? Does it work with a different ntp_client (e.g. systemd-timesyncd)?
Could you please run `cloud-init collect-logs` on a system where you hit the issue and attach the generated tarball to this bug report?
Waiting for more information I'm setting this to Incomplete for the moment.