Skip to content
Discussion options

You must be logged in to vote

Do I understand your question correct? The SSH client is running on a system in which multiple people have root access and you wish to protect the generated SSH keys?

In general credentials can not be protected against an attacker that has root. An attacker with root could modify the tool you use to encrypt the credentials and either leak the credential or the password to the attacker. Alternatively an attacker with root could modify SSH to steal your credential when SSH sees it. The best you can to is limit your window of exposure.

By default opkssh SSH keys expire after 24 hours, limiting the window of exposure.

If you want a much shorter window of exposure, I'd suggest writing a script…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@craig-silva
Comment options

@EthanHeilman
Comment options

Answer selected by craig-silva
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants