Skip to content

Conversation

FanBB2333
Copy link

Find existing keys in the default SSH config path and it can save some time if one doesn't have id_rsa key

Copy link
Owner

@haginara haginara left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

keys.append(os.path.join(path, file))
if len(keys) == 0:
# keys not found, return default key
print(f"[Warning] identity file not found, using default")
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

for the consistency, click.echo would be better

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.

2 participants