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

sshnp using ssh keys with passphrase has a security issue #1601

Open
cconstab opened this issue Dec 7, 2024 · 1 comment
Open

sshnp using ssh keys with passphrase has a security issue #1601

cconstab opened this issue Dec 7, 2024 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@cconstab
Copy link
Member

cconstab commented Dec 7, 2024

Is your feature request related to a problem? Please describe.

The current --identity-passphrase option leaves the key and the passphrase in the shell history which is not safe

Describe the solution you'd like

I an ideal world not having to enter the passphrase at all ?

Describe alternatives you've considered

A couple of options..
Drop to a prompt to enter the passphrase
Use the safer mechanism on particular platforms to get entry
Does sshnp need to know the passphrase any way ?

Additional context

example existing commandline
╰$ sshnp -f @ccons -t @ssh_11 -h @rv_am -d ord_001 -u opc -i ~/.ssh/GitHub_rsa --identity-passphrase MySecurePassPhrase!!

@cconstab cconstab added the enhancement New feature or request label Dec 7, 2024
@XavierChanth
Copy link
Member

Does sshnp need to know the passphrase any way ?

Pure dart, yes, other implementations, no.

@XavierChanth XavierChanth self-assigned this Dec 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants