Changes between Version 4 and Version 5 of FAQ_T4_F17


Ignore:
Timestamp:
04/12/15 13:25:39 (4 years ago)
Author:
annette
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • FAQ_T4_F17

    v4 v5  
    1 == How do I tidy up old ssh keys? == 
    2   
    3 If you have forgotten your passphrase you will need to regenerate your ssh keys. Before doing so, you will need to tidy up the old keys otherwise the ssh agent can get itself confused. 
     1== I've forgotten my passphrase == 
    42 
    5 Go to your `~/.ssh` directory, and look at the files, you should see something like:  
    6 {{{ 
    7 puma$ ls ~/.ssh 
    8 environment.puma  id_rsa  id_rsa.pub  known_hosts  ssh-setup 
    9 }}} 
    10 Delete the public and private keys. These will normally be named `id_rsa` and `id_rsa.pub`, or `id_dsa` and `id_dsa.pub`. 
    11  
    12 You should also delete the `environment.puma` file.  
    13  
    14 Next check if you have an agent running: 
    15 {{{ 
    16 puma$ ps -flu <puma-username> | grep ssh-agent 
    17 }}} 
    18 If an agent is running, one or more lines like the following will be returned: 
    19 {{{ 
    20 15658 ?        00:00:00 ssh-agent 
    21 }}} 
    22 The number in the first column is the process-id, pass this to the kill command to stop the process, for example: 
    23 {{{ 
    24 puma$ kill -9 15658 
    25 }}}