How to change pass-phrase for SSH key authentication

Published: 24-Jan-2011 (22:35); Viewed: 3188; Difficulty: 2 out of 10

Rating: N/A

k

RSA key based authentication is one of the most secure and convenient way for authorization between Unix computers. One of the classical mistakes, very common for beginners is very long and strong pass-phrase, which can be easily forgotten. Here we will give you simple instruction, how to generate new pass-phrase and change keys for authentication. Unfortunately, it is impossible to restore an old pass-phrase.

step-by-step instructions

  1. Remove locally stored file with authentication keys. Usually, buy default, you should remove /home/yourname/.ssh/id_rsa file.

  2. Login to remote Unix computer and edit file with public keys (~/.ssh/authorized_keys).

  3. In the file with public keys (~/.ssh/authorized_keys) find the line corresponding to your local computer and remove it. This line should looks like
    ssh-rsa VeRy_lONg_RandOm_seT_oF_SymBOls== <username>@<local_host_name>
    and delete this line.

  4. Now you can repeat step-by-step your SSH key authentication process again, and do all your best to do not loose secret pass-phrase again.



Rate:
1 2 3 4 5 6 7 8 9 10
by: John Farnon
Delicious submit to reddit Add to Technorati Favorites
tags: internet security; linux; passphrase; ssh

also read

  • How to do SSH key authentication
    RSA key-based authentication is one of the simplest and most secure way to login from Unix computer to remote Unix based computer. You need to enter ...

  • How to make strong pass-phrase
    For secure protection of some very important information it is necessary to use extremely secure pass-phrases. Pass-phrases are usually much longer ...


navigation:officials:topics:
  • copyright
  • privacy
  • contacts