_____________________________________________________________________
724-746-5500 | b lackb o x.co m
Page 208
OpenSSH (Windows):
http://sshwindows.sourceforge.net/download/
For example, using PuTTYgen, make sure you have a recent version of the
puttygen.exe
(available from
http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html)
Make sure you have a recent
version of WinSCP (available from
http://winscp.net/eng/download.php
To generate a SSH key using PuTTY
http://sourceforge.net/docs/F02/#clients:
-
Execute the PUTTYGEN.EXE program.
-
Select the desired key type
SSH2 DSA
(you may use RSA or DSA) within the
Parameters
section.
-
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.
-
Create a new file "
authorized_keys
" (with notepad) and copy your public key data from the "Public
key for pasting into OpenSSH authorized_keys file" section of the PuTTY Key Generator, and paste
the key data to the "authorized_keys" file. Make sure there is only one line of text in this file.
-
Use WinSCP to copy this "authorized_keys" file into the users home directory: e.g.
/etc/config/users/testuser/.ssh/authorized_keys
of the Black Box gateway which will be the SSH
server. You will need to make sure this file is in the correct format with the correct permissions with
the following commands:
# dos2unix \
/etc/config/users/testuser/.ssh/authorized_keys && chown testuser \
/etc/config/users/testuser/.ssh/authorized_keys