====== Add a public SSH key to your instance ====== ~~NOTOC~~ You can register a public key during the creation of your instance for SSH key authentication during SFTP and Git access. **Please note that this is not available for SSH console connection.** To do this: ===== Step 1: Generate the keys ===== * **Linux :** You can use the following OpenSSH tools (ssh-keygen) command (available on Linux) : ssh-keygen -t rsa -b 2048 * ** Windows :** You can use the Putty generator 'PuttyGen' available on this [[http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html|page]] ===== Step 2: Add your public key ===== * See: http://wiki.gandi.net/en/gandi/ssh-keys#deployment_of_the_ssh_key_on_an_instance ====== Remove a public SSH key from your instance ====== 1. Login to your instance via [[en:simple:sftp|SFTP]] 2. Navigate to the folder named '.ssh' located at the root of your SFTP directory listing 3. To remove all SSH public keys simply delete the file 'authorized_keys'. Alternatively, you can edit the file and remove only the SSH public keys that you wish.