Mevcut bir genel/özel anahtar çiftim var. Özel anahtar parola korumalıdır ve şifreleme RSA veya DSA olabilir. Bu anahtarlar ssh-keygen
ve genellikle ~/.ssh
.
Özel anahtarın şifresini değiştirmek istiyorum. Standart bir Unix kabuğunda nasıl dolaşırım?
Ayrıca, şifreyi nasıl kaldırabilirim? Sadece boş olarak değiştirilsin mi?
Varsayılan DSA anahtarınızdaki parolayı değiştirmek için:
$ ssh-keygen -p -f ~/.ssh/id_dsa
komut istemlerinde eski ve yeni parolanızı (iki kez) girin. (~/.ssh/id_rsa
bir RSA anahtarınız varsa.)
Daha fazla ayrıntı _ man ssh-keygen
:
[...]
SYNOPSIS
ssh-keygen [-q] [-b bits] -t type [-N new_passphrase] [-C comment]
[-f output_keyfile]
ssh-keygen -p [-P old_passphrase] [-N new_passphrase] [-f keyfile]
[...]
-f filename
Specifies the filename of the key file.
[...]
-N new_passphrase
Provides the new passphrase.
-P passphrase
Provides the (old) passphrase.
-p Requests changing the passphrase of a private key file instead of
creating a new private key. The program will Prompt for the file
containing the private key, for the old passphrase, and twice for
the new passphrase.
[...]