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

Pre-configured ssh keys for "cbsd node mode=add". #59

Closed
mzs114 opened this issue Dec 20, 2015 · 4 comments
Assignees

Comments

@mzs114
Copy link

@mzs114 mzs114 commented Dec 20, 2015

Is it possible to use ssh keys which are already configured?

I guess when we add a new cbsd node, a new key is generated. Can we specify keys which are already configured on the remote node?

@olevole olevole self-assigned this Dec 23, 2015
@olevole

This comment has been minimized.

Copy link
Collaborator

@olevole olevole commented Dec 25, 2015

CBSD yet it does not have special ability for management public/private key. You can repeat follow steps from install_sshkey function by hand for replace generated key:

https://github.com/olevole/cbsd/blob/master/initenv.subr#L521

In short:

Private key must be placed in: $workdir/.ssh/${md5_fromname}.id_rsa
Public key: $workdir/.ssh/authorized_keys

where ${md5_fromname} - is md5sum from nodename:

% md5 -qs `cat ~cbsd/nodename`
@olevole

This comment has been minimized.

Copy link
Collaborator

@olevole olevole commented Dec 25, 2015

upd: I've just leave the ticket in open state: todo "think about it"

@olevole

This comment has been minimized.

Copy link
Collaborator

@olevole olevole commented Nov 25, 2016

note to self: we need to move authkey data into SQLite3 and wrote -tui/management cli for this.
It planned to CBSD 11.0.6

@olevole

This comment has been minimized.

Copy link
Collaborator

@olevole olevole commented Feb 28, 2017

Added (will be available with CBSD 11.0.10) script:

cbsd sshkey [private_key=<path to personal id_rsa>] [public_key=<path to personal pub/authorized_keys>] [renew=1]

to control node ssh/pubkey pair.

Sorry about the delay ;-)

@olevole olevole closed this Feb 28, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.