remembering passwords on a non-GUI server

Oliver Grawert ogra at ubuntu.com
Mon Jan 30 12:14:08 UTC 2023


hi,
Am Montag, dem 30.01.2023 um 23:02 +1100 schrieb Karl Auer:
> Embarrassingly, I realise I do not actually know how obe aspect of my
> Ubuntu systems works: When I (for example) ssh to a remote server, my
> local system automagically remembers the passphrase I used for my ssh
> private key, and will not ask again for some time. sudo works the
> same
> way, as does gpg, though they may all be using different methods to
> achieve it.
> 
yes, there are ... for ssh and gpg see:

$ ps ax|grep bin/[a-z]*-agent
  52085 ?        SLs    0:02 /usr/bin/gpg-agent --supervised
  75230 ?        S      0:00 /usr/bin/ssh-agent -D -a
/run/user/1000/keyring/.ssh
$

sudo works a tad different handling the timeut for its passphrase cache
internally ... take a look at the sudo manpage, specifically at the -k
option for this ...

ciao
	oli

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: This is a digitally signed message part
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20230130/f8615693/attachment.sig>


More information about the ubuntu-users mailing list