-
Notifications
You must be signed in to change notification settings - Fork 234
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SSH failed with Ubuntu 22 and Centos 9 #395
Comments
22.04 isn't working because it requires an ECDSA key.
hashicorp/packer#11656 has some more details. |
I've gotten this to work by specifying an ed25519 key like below:
The key can be generated with |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
🗣️ Foreword
Thank for taking the time to fill this bug report fully. Without it we may not be able to fix the bug, and the issue may be closed without resolution.
👻 Brief Description
I am doing kitchen test with docker driver on Ubuntu 22 and Centos 9 platforms but it fails in SSH of kitchen create step.
Version
chef_version=17.10.3
platform=centos
ruby=ruby 3.0.3p157 (2021-11-24 revision 3fb7d2cadc) [x86_64-linux]
program_name=/opt/chef/bin/chef-solo
executable=/opt/chef/bin/chef-solo
Environment
Scenario
The kitchen test fails in
kitchen create
:My kitchen.yml file is as below:
I can ssh to it with command
ssh -p <port> -i <private-key-path> kitchen@localhost
without any issue. And I checked that the container is forwarding the correct port:I tried every effort in unsettling
ssh-agent
or stop it's daemon. None of them work. This issue only happens with Ubuntu 22 or Centos 9. It works well with Ubutnu 18, 20 and Centos 8Any advice would be helpful, thanks in advance!
The text was updated successfully, but these errors were encountered: