Skip to content

SSH Connection Succeeds, But Script Execution Fails to Recognize SSH Key on VM #894

Discussion options

You must be logged in to vote

Is there something specific about how Tart handles SSH keys or sessions that might cause this issue? Could it be related to the environment in which the script is executed on the VM?

This is unlikely, because the Tart is pretty net-neutral unless --net-softnet is used, and we don't do anything special to the VM environments, you can check the base.pkr.hcl to see that it's mostly about installing Homebrew and assorted software.

Regarding the pipeline script you've posted, I think it needs to either (1) copy of the private key into the VM or (2) forward the agent connection to the VM to achieve what you want.

The latter can be accomplished by first starting a new instance of the SSH agent…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@DominikWunderlich
Comment options

Answer selected by DominikWunderlich
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants