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

nucypher-ops commands that require the ssh key should allow any ssh key filepath to be specified #10

Open
derekpierre opened this issue May 26, 2022 · 4 comments

Comments

@derekpierre
Copy link
Member

I like to have my ssh keys in different folder locations. However nucypher-ops ursula deploy seems to require the ssh key to be ~/.ssh/id_rsa. Ideally, I would be able to specify the filepath to any ssh to override the default. I believe --key-path is used for nucypher-ops nodes create, so something similar should be done for running nucypher-ops ursula comands.

@vepkenez
Copy link
Contributor

vepkenez commented May 26, 2022

@derekpierre the way it works is that when you --create or --add a node, the key path for that node is saved in your config file. It can be anything when you create or add the node, so in your case, it presumably was ~/.ssh/id_rsa (which is the default).

That said, we could make a way to change it or override it.

@derekpierre
Copy link
Member Author

derekpierre commented May 26, 2022

Ah ok. Is there a way for me to temporarily update that setting in a configuration file before a fix is available?

@derekpierre
Copy link
Member Author

Looks like it was just a matter of adding to the provider_deploy_attrs list in the json configuration file:

"provider_deploy_attrs": [
...
    {
         "key": "ansible_ssh_private_key_file",
         "value": "<path>"
    }
],

@mickeyjoes
Copy link

{
"key": "ansible_ssh_private_key_file",
"value": ""
}

Thanks, this worked for me.
I have similar setup with multiple keys. It would be nice to have the nucypher-ops ursula deploy ask for this configuration so the deploy can continue.

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

No branches or pull requests

3 participants