Дата окончания срока действия ключевой фразы генератора ключей Putty

2441
harsh

Я сгенерировал пару ключей, используя генератор ключей putty, который поставляется вместе с установочным пакетом winscp. при генерации ключа я также ввел пароль. Подскажите, пожалуйста, есть ли дата истечения срока действия этой парольной фразы. Если да, то как долго. Как найти дату истечения срока действия этого пароля.

1
Ключи замазки, как и другие ключи SSH, не имеют срока действия. Puttygen по умолчанию помещает дату генерации в поле комментария, которую (если вы ее не измените) вы можете позже использовать, чтобы выбрать, когда и когда вручную заменять или удалять ключ. dave_thompson_085 7 лет назад 1

1 ответ на вопрос

4
dave_thompson_085

(Expanded from comment)

WinSCP and Putty use, and Puttygen generates, SSH keys, and SSH keys do not expire. (Unlike for example PGP signed-keys and X.509/SSL/TLS certificates for keys.) Puttygen by default puts the generation date (yyyymmdd) in the comment field of the key, and if you don't modify this, you can later use it to manually decide whether a key is 'too old' and should be replaced or deleted. Of course, usually the OS/filesystem provides a timestamp on the file (containing the key) anyway.

But note the passphrase is not the actual key, it is used only locally to encrypt the privatekey which is randomly generated (that's the bit when you must move the mouse around). If you want to change the passphrase for any reason, including the passage of time, you can Load the .ppk file into Puttygen, retype the KeyPassphrase and ConfirmPassphrase fields, and Save. The actual key is unchanged and will continue to work with a server where you (or an admin) have previously configured the public part of your key as an 'authorized' key.

Похожие вопросы