kitchen-ec2 icon indicating copy to clipboard operation
kitchen-ec2 copied to clipboard

Fedora never connects to SSH

Open tas50 opened this issue 3 years ago • 4 comments

Something is wrong with the Fedora AMIs. I'm not sure if they have sshd started when they come up. They never login so this is totally broken.

tas50 avatar Nov 03 '21 15:11 tas50

@tas50 I've been playing with CentOS 9 Stream with Test Kitchen. /var/log/secure is showing

Dec  7 20:01:37 localhost sshd[14640]: userauth_pubkey: key type ssh-rsa not in PubkeyAcceptedAlgorithms [preauth]

Manual ssh -i aws.key ec2-user@ip works.

Possibly related?

knightorc avatar Dec 07 '21 20:12 knightorc

Adding ssh-rsa to PubkeyAcceptedAlgorithms list in /etc/crypto-policies/back-ends/opensshserver.config permits kitchen create to complete and kitchen login work after an sshd restart

FYI

knightorc avatar Dec 07 '21 20:12 knightorc

As of Ubuntu 22.04, ssh-rsa will also be removed form the PubkeyAcceptedAlgorithms so the driver needs to add support for ECDSA

b0xspread avatar Oct 07 '22 08:10 b0xspread

Would be resolved by https://github.com/test-kitchen/kitchen-ec2/pull/583 with a blip of config

bdwyertech avatar Oct 25 '22 03:10 bdwyertech