Para alterar a frase secreta na sua chave DSA padrão:
$ ssh-keygen -p -f ~/.ssh/id_dsa
em seguida, forneça sua senha antiga e nova (duas vezes) nos prompts. (Use ~/.ssh/id_rsa
se você tiver uma chave RSA.)
Mais detalhes de 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.
[...]