This FAQ describes how to manually generate and configure SSH keys using Windows. First create a new user from the Opengear Management Console on Opengear gateway (the following example users a user called "testuser") making sure it is a member of the "users" group. If you do not already have a public/private key pair you can generate them now using ssh-keygen, PuTTYgen or a similar tool:
- PuTTYgen: http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html
- OpenSSH: http://www.openssh.org/
- OpenSSH (Windows): http://sshwindows.sourceforge.net/download/
- For a good overview of SSH key generation: http://alexandria.wiki.sourceforge.net/SSH+Key+Generation#clients
For example using PuTTYgen first make sure you have a recent version of the puttygen.exe. To generate an SSH key using PuTTYgen :
- Execute the PUTTYGEN.EXE program
- Select the desired key type within the Parameters section ... and it is important that you leave the passphrase field blank
- Click on the Generate button
- Follow the instruction to move the mouse over the blank area of the program in order to create random data used by PUTTYGEN to generate secure keys. Key generation will occur once PUTTYGEN has collected sufficient random data.
- Save the private key and acknowledge that you are saving without a passphrase.
- Copy the key from the "Public key for pasting into OpenSSH..." box, then in the Edit a user page in the Opengear web interface, paste that key into the SSH Authorized Keys box.
- Test the Public Key by directing your SSH client to use your private key and logging in as "testuser" to the Opengear device, you shouldn't need to enter a password.