test-kitchen / kitchen-azurerm

A driver for Test Kitchen that works with Azure Resource Manager
Apache License 2.0
48 stars 52 forks source link

Kitchen fails to ssh to Ubuntu 22 azure VM #275

Open alpana17 opened 4 days ago

alpana17 commented 4 days ago

Here is my kitchen.yml `driver: name: azurerm retryable_tries: 120

transport: name: sftp ssh_key: /home/jenkins/ssh/kitchen_azure username: ubuntu connection_retry_sleep: 30 connection_retries: 20

provisioner: name: chef_zero product_name: chef product_version: 16.10.8 max_retries: 4 wait_for_retry: 200 retry_on_exit_code:

verifier: name: inspec

platforms:

suites:

Getting error: [SSH] connection failed, retrying in 30 seconds (#<Net::SSH::AuthenticationFailed: Authentication failed for user ubuntu@>) Is Ubuntu-22 supported??

Stromweld commented 4 days ago

what version of test-kitchen and kitchen-azure are you running? Can you also see which net-ssh gem version you have. Version below 7.x doesn't support the newer ssh algorithms newer servers are supporting and they dropped support for the default rsa keys with less than 1024 bits.

alpana17 commented 3 days ago

Using test-kitchen 2.7.2 kitchen-azurerm 1.4.0 net-ssh 6.1.0

Please suggest

Stromweld commented 3 days ago

you'll need to upgrade your gems to fix your issues.