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

none backend: documentation doesn't describe authentication #676

Open
pvgoran opened this issue Jun 5, 2017 · 3 comments
Open

none backend: documentation doesn't describe authentication #676

pvgoran opened this issue Jun 5, 2017 · 3 comments

Comments

@pvgoran
Copy link

pvgoran commented Jun 5, 2017

The current version of manual only mentions that deployment.targetHost needs to be set in order to deploy to a NixOS machine (none backend). It's unclear how I can supply nixops with authentication information so that it could log into the machine to perform deployment. Also, it's unclear whether nixops will use the the provided authentication method (whatever it is) forever, or it will create and use its own SSH key pair.

@cleverca22
Copy link
Contributor

nixops will generate its own keypair to get into the machine, but that key isnt trusted out of the box, so you need to either have an ssh-agent working or maybe password auth works

@pvgoran
Copy link
Author

pvgoran commented Aug 1, 2017

I have trouble understanding this. What are the actions that I need to perform to make the machine accessible to and manageable by nixops?

@cleverca22
Copy link
Contributor

for the first deploy, run ssh-agent and ssh-add a key that can ssh into root

for all future deploys, nixops added its own key and can just get in

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

No branches or pull requests

4 participants