Skip to content

Wire --key and --key-file options to add_ssh_key in rp ssh add - #805

Open
theluckystrike wants to merge 1 commit into
runpod:mainfrom
theluckystrike:fix-ssh-add-key-options
Open

theluckystrike wants to merge 1 commit into
runpod:mainfrom
theluckystrike:fix-ssh-add-key-options

Conversation

@theluckystrike

Copy link
Copy Markdown

Fixes #791.

In runpod/cli/groups/ssh/commands.py, add_key() only called generate_ssh_key_pair() when neither --key nor --key-file was provided, and otherwise printed success without calling add_ssh_key().

This imports add_ssh_key from .functions and uploads the key from --key-file or --key when either option is supplied.

This branch has not been deployed

No deployments
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

Successfully merging this pull request may close these issues.

rp ssh add --key and --key-file report success but do not add the key

1 participant