Skip to content
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

ssh keygen only generates for local user and local host not passed in user and host #11

Open
rknechtel opened this issue Oct 18, 2024 · 0 comments

Comments

@rknechtel
Copy link

The current ssh keygen command only generates for local user and local host not the passed in user and host.
It would be good if it would generate a key based on the passed in user and host. I create different users for systems I manage and it would be good if the script would handle generating for any passed in user and host.

Current:
${SSH_KEYGEN} -t $KEYTYPE -b $KEYSIZE -f "${FILENAME}" -N "${PASSPHRASE}"

Proposed addition:
${SSH_KEYGEN} -t $KEYTYPE -b $KEYSIZE -f "${FILENAME}" -N "${PASSPHRASE}" -C "${USER}@${HOST}"

I made the manual change in my local script and it works great! Just might want to add some check to see which way user wants it.

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

No branches or pull requests

1 participant