Closed Johndpete316 closed 1 year ago
Hey @Johndpete316
Thanks for sharing. I'm actually out of the country now here in Germany, so my response might be spotty.
So this definitely looks like an issue with scp
running on the same system running terraform. What OS are you running this from? What happens when you just type scp
? What output do you get?
Yes, I should have mentioned that scp was a requirement. Assumed that most users would be running from Linux or MacOS. I believe with a powershell prompt in windows you can run scp by default too. Just let me know. The local-exec provisioner error means it is coming from the local machine. Also odd about sleep as sleep should be included in Linux. To make it easier if you can just try running all of your builds from stock Ubuntu Linux (i used 20.04) you should be gtg.
Thanks on the offer for a beer. I followed you back. I noticed you are in/from Michigan. Born in Detroit and spent several years in Ann Arbor.
@Johndpete316
Also, I have on my ToDo list to completely refactor the code for Velociraptor and HELK, getting rid of the local-exec provisioner and Ansible playbooks. Everything will be implemented with user-data and bash, making it much more reliable. I have an open issue to get this done. I hope you can get around your current issues as I'm still a couple of weeks away from starting this:
Confirmed issue is on our side. When switching over to a Ubuntu 20.04 local-exec was able to scp into remote machine with no issue.
Thank you for taking the time to look into it!
Issue
Unable to copy public key to velocihelk machine, consistently getting the same error when running this with --helk enabled. Tested on multiple different machines.
Process to reproduce
Output during terraform apply:
Seeing this status pop up a few times during creation . At this point it has yet to stop the process and error out.
After letting it run for ~20 minutes I ended the process manually, here is the output from that:
Tried running the apply one more time. Just noticing this output in the terminal.
I would like to put emphasis on this line
null_resource.helk-scp-velociraptor-config (local-exec): 'scp' is not recognized as an internal or external command,
I confirmed the machine I am running the commands from does have SCP (pretty sure this wasn't a requirement just wanted to double check.
I manually ended the procss again, this time I am seeing this error reguarding running the following command. (
Complete output
logoutput.txt
As always if more details are needed let me know
P.S. shoot me a follow back on twitter, would love to shoot you a couple bucks for a drink