-
Notifications
You must be signed in to change notification settings - Fork 94
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Dev: utils: Avoid hardcoding the ssh key type as RSA (#1600)
## Problem - The join process will fail if the existing key type is not RSA. See: #1504 (comment) - If the init and join nodes are already set up for passwordless access using an ed25519 key, an RSA key pair is still generated during the init/join process. ## Changes include: - Avoid hardcoding the ssh key type as RSA - Introduced a new function `ssh_key.fetch_public_key_list` to fetch public keys from local or remote, return as public key path list or public key content list - In KeyFileManager, use class variable to store the key type instead of hardcoding it as RSA - Improve shell script in generate_ssh_key_pair_on_remote to avoid hardcoding the key type as RSA - Remove unused code
- Loading branch information
Showing
4 changed files
with
144 additions
and
146 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.