| 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 | }}} |