Re:PAM Duress – Alternate passwords for panic situations
by tyingq on Sunday August 22, 2021 @03:01PM
(#28268426)
Pam is for more than just ssh. This could wipe data on a Linux machine for a local login, gdm, sudo, and so on.
Re:PAM Duress – Alternate passwords for panic situations
by taneliv on Monday August 23, 2021 @10:30AM
(#28276302)
Yes, and perhaps _not_ use pam_duress for remote logins, in case you want to keep your duress password simple (think "password" or something similar, actually memorable in a duress situation).
Re:PAM Duress – Alternate passwords for panic situations
by jstanley on Sunday August 22, 2021 @02:59PM
(#28268411)
I don't think this is specific to SSH.
You could just as easily use this on your client machine and have it delete your private keys if you try to login with the duress password.
Re:PAM Duress – Alternate passwords for panic situations
by wowaname on Sunday August 22, 2021 @08:23PM
(#28271047)
I use an authentication PGP subkey for SSH so I have to unlock it with a passphrase before using it. Normal SSH keys can be encrypted similarly, and either gpg-agent or ssh-agent can save your passphrase in memory for an amount of time.
Maybe a more modern concept would be to both a) have a duress private key, that triggers duress scripts in the same way, b) an implementation of ssh-agent that adds the duress private key when a duress password is entered?