Skip to content
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

fix: integration keyscan against cvim via bastion #99

Merged
merged 1 commit into from
Aug 13, 2024
Merged

Conversation

displague
Copy link
Member

@displague displague commented Aug 13, 2024

Terraform apply succeeds in integration tests, but the followup commands (keyscan, and remote exec on cvim) need some fixups.

Some of these changes are somewhat academic and could be replaced by ignoring host keys

@displague displague merged commit 27bb6fc into main Aug 13, 2024
1 check passed
@displague displague deleted the fix-keyscan branch August 13, 2024 02:22

ssh-add $(terraform output -raw ssh_private_key)
ssh-keyscan -H $(terraform output -raw bastion_public_ip) >> ~/.ssh/known_hosts
ssh-keyscan -H -p 22 -t rsa -T 10 -o StrictHostKeyChecking=no -o "ProxyCommand=ssh -W %h:%p root@$(terraform output -raw bastion_public_ip)" $(terraform output -raw cvim_ip_address) >> ~/.ssh/known_hosts
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

-o should be -O

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant