Skip to content

Executor host key file #160

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

Open
Metallion opened this issue May 8, 2017 · 0 comments
Open

Executor host key file #160

Metallion opened this issue May 8, 2017 · 0 comments

Comments

@Metallion
Copy link
Contributor

Metallion commented May 8, 2017

Problem

The openvdc console command connects via ssh to an executor node which then in turn connects an instance's console. The problem is executor's host key is generated on startup. That means if the executor is restarted, there will be a problem with the client's known_hosts file.

Solution

  • Keep the executor host key somewhere under /etc/openvdc
  • If the key is not present, generate it on executor startup.
  • After generation, the key should be written to its proper path under /etc/openvdc
  • Key generation should be done in go. We don't want to use Linux commands because we might run executor on Windows in the future.

The pem package can be used to handle private key pem files.

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

1 participant