We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
kitchen login
I'm not entirely sure where this bubbles up from (might be a test-kitchen issue), but kitchen login doesn't seem to like relative paths for ssh keys.
Full path:
- name: ec2-ubuntu-12.04 driver_name: ec2 driver_plugin: ec2 driver_config: image_id: ami-ad3660c4 # 64-bit instance-store backed username: ubuntu ssh_key: ~/Users/markbate/.ec2/test-kitchen.pem
The following should work fine:
kitchen converge default-ec2-ubuntu-1204 kitchen login default-ec2-ubuntu-1204
If you set it a relative path:
- name: ec2-ubuntu-12.04 driver_name: ec2 driver_plugin: ec2 driver_config: image_id: ami-ad3660c4 # 64-bit instance-store backed username: ubuntu ssh_key: ~/.ec2/test-kitchen.pem
The following will converge, but not login.
Error message is:
Warning: Identity file ~/.ec2/test-kitchen.pem not accessible: No such file or directory. Permission denied (publickey).
Tests should also work fine, it's just the login that doesn't expand the path.
The text was updated successfully, but these errors were encountered:
Marked this as a bug. It might be a TK issue, but paging @fnichol 😄.
Sorry, something went wrong.
Ah yes, this is something I need to fix/add for drivers, which was added to provisioners.
Moved to test-kitchen/test-kitchen#389
Workaround for now:
kitchen login -l debug
D Login command: ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o IdentitiesOnly=yes -o LogLevel=VERBOSE -i ~/.ec2/test-kitchen.pem -p 22 ec2-user@ec2-123-456-789-01.compute-1.amazonaws.com (Options: {})
Login command
ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o IdentitiesOnly=yes -o LogLevel=VERBOSE -i ~/.ec2/test-kitchen.pem -p 22 ec2-user@ec2-123-456-789-01.compute-1.amazonaws.com
No branches or pull requests
I'm not entirely sure where this bubbles up from (might be a test-kitchen issue), but kitchen login doesn't seem to like relative paths for ssh keys.
Full path:
The following should work fine:
If you set it a relative path:
The following will converge, but not login.
Error message is:
Tests should also work fine, it's just the login that doesn't expand the path.
The text was updated successfully, but these errors were encountered: