Open
Description
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.