Skip to content

Commit

Permalink
Merge pull request #9 from wu2s/wu2s-How-to-guide
Browse files Browse the repository at this point in the history
Created How-to Guides section with initial chapter on making SSH keys on Windows computers.
  • Loading branch information
dman776 committed Jan 22, 2019
2 parents 89c9da1 + 8addcdd commit 503f641
Show file tree
Hide file tree
Showing 24 changed files with 265 additions and 10 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
.DS_Store
Makefile
make.bat
index.rst.original
_build/
Binary file added arednHow-toGuides/_images/01-puttygen.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added arednHow-toGuides/_images/01A-puttygen.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added arednHow-toGuides/_images/02-puttygen.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added arednHow-toGuides/_images/03-puttygen.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added arednHow-toGuides/_images/05-puttygen.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added arednHow-toGuides/_images/06-puttygen.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added arednHow-toGuides/_images/07-puttygen.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added arednHow-toGuides/_images/08-puttygen.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added arednHow-toGuides/_images/09-puttygen.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added arednHow-toGuides/_images/10-puttygen.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added arednHow-toGuides/_images/11-puttygen.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added arednHow-toGuides/_images/12-puttygen.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added arednHow-toGuides/_images/13-puttygen.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added arednHow-toGuides/_images/14-puttygen.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added arednHow-toGuides/_images/15-puttygen.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added arednHow-toGuides/_images/16-puttygen.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added arednHow-toGuides/_images/17-puttygen.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added arednHow-toGuides/_images/18-puttygen.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added arednHow-toGuides/_images/19-puttygen.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added arednHow-toGuides/_images/20-puttygen.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 13 additions & 0 deletions arednHow-toGuides/howto_overview.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
============================
AREDN How-to Guides Overview
============================

As mentioned in the AREDN |trade| overview, the purpose of an amateur radio emergency data network is to provide typical Internet or intranet programs to people who need to communicate across a wide area during an emergency or community event. An AREDN |trade| network provides the transport mechanism for the types of programs people typically use today to communicate with each other in the normal course of their business and social interactions.

A network must be planned, monitored and managed if it is to remain effective.

The purpose for this section of the AREDN |trade| documentation is to share the collection of useful tips and techniques we use to plan, deploy, manage, monitor and enhance a mesh network.


.. |trade| unicode:: U+02122 .. TRADE MARK SIGN
:ltrim:
231 changes: 231 additions & 0 deletions arednHow-toGuides/puttygen_ssh_keys.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,231 @@
===================================================================================
How-to Use PuTTYGen on Windows to Make SSH Keys and Use Them on AREDN |trade| Nodes
===================================================================================

This How-to will show you a method for generating SSH key pairs on a Windows computer, saving them to a USB flash drive, installing the SSH key on an AREDN |trade| node and using the SSH keys with a PuTTY terminal session.

The use of Secure Shell (SSH) keys when using PuTTY or another SSH client is a useful aid to managing a group of AREDN |trade| nodes.

First, obtain the PuTTY suite of applications from the PuTTY Download Page and install them on your computer.

Second, obtain and prepare to use a text editor such as Notepad++ that does not insert unwanted characters and metadata into a text file.

Next, follow the steps below.

1. Start the PuTTYGen application


.. image:: _images/01-puttygen.png
:alt: Confirm SSH-2 RSA key
:align: center



----------------------------------

2. Confirm that you are going to generate an SSH-2 RSA key.

----------------------------------

.. image:: _images/01A-puttygen.png
:alt: Confirm SSH-2 RSA key
:align: center

----------------------------------

3. Select the “Generate” button to get the prompt asking you to make some random mouse movements.

----------------------------------

.. image:: _images/02-puttygen.png
:alt: Generate some randomness
:align: center

----------------------------------

4. After a short while you get a message asking you to wait while the keys are generated.

----------------------------------

.. image:: _images/03-puttygen.png
:alt: Wait while keys are generated
:align: center

----------------------------------

5. It finishes and you now have a new key pair.

----------------------------------

.. image:: _images/05-puttygen.png
:alt:
:align: center

----------------------------------

6. Give the key pair a suitable comment so that you will remember what the keys are used for. Here we just entered testkey@wu2s.com for an example. Whatever you enter in the "Key Comment" field must look like an email address - no spaces and the "@" is present as in callsign@example.com

Also enter a suitable passphrase to use when accessing the private key.

----------------------------------

.. image:: _images/06-puttygen.png
:alt: Label key pair and create pass phrase
:align: center

----------------------------------

7. We will now copy and save the public key.
Open Notepad++ and confirm that the End Of Line (EOL) format is set to UNIX/OSX Format. This will assure that there are no extraneous characters in the public key file.

----------------------------------

.. image:: _images/07-puttygen.png
:alt: Create new file for public key
:align: center

----------------------------------

8. Back in your PuTTYGen window, select and copy (Control-C) the complete text in the boxed labeled “Public key for pasting into OpenSSH authorized keys file”

----------------------------------

.. image:: _images/08-puttygen.png
:alt: Select public key for copying
:align: center

----------------------------------

9. Switch back to your Notepad++ window and Paste (Control-V) the public key text you just copied from PuTTYGen.

----------------------------------

.. image:: _images/09-puttygen.png
:alt: Paste public key into file
:align: center

----------------------------------

10. From the Notepad++ menu bar, select File -> Save As to save the public key to a suitable location. Many people save their keys on a USB flash drive to maintain physical possession of them at all times.
Give the public key file a suitable name. You can exit Notepad++ now since you will not need it again.

----------------------------------

.. image:: _images/10-puttygen.png
:alt: Save public key
:align: center

----------------------------------

11. Switch back to the PuTTYGen window again and select the “Save Private Key” button. This will let you save the private key just as you did in the previous step with the public key.
You are finished with generating and saving your SSH keys. Exit PuTTYGen.

----------------------------------

.. image:: _images/11-puttygen.png
:alt: Save private key
:align: center

----------------------------------

12. In order to use your new SSH key pair, login to your AREDN |trade| node and go to the Administration screen. At the bottom you will see the Authorized SSH Keys section where you will install the public keys to use on this node.

----------------------------------

.. image:: _images/12-puttygen.png
:alt: Node Administration page
:align: center

----------------------------------

13. When you press the Select File button you get a dialog box which enables you to locate the public SSH key that you want to install.

----------------------------------

.. image:: _images/13-puttygen.png
:alt: Select key to install
:align: center

----------------------------------

14. After choosing the desired public key file. Select the Upload button to install the key on the AREDN |trade| node.

----------------------------------

.. image:: _images/14-puttygen.png
:alt: Upload and install key
:align: center

----------------------------------

15. After installing the new public key, confirm that it is ready for use by looking in the Dropdown List in the Remove Key section. If your SSH key filename appears, then it is installed properly. DO NOT remove it. Here we see that there are two SSH keys currently installed on this node.

----------------------------------

.. image:: _images/15-puttygen.png
:alt: Confirm that node has SSH key
:align: center

----------------------------------

16. To use your SSH keys, open a new PuTTY session.
In the Hostname box enter localnode and in the Port box enter 2222.
It is helpful to save this session definition now as something you will remember. Select the Save button.

----------------------------------

.. image:: _images/16-puttygen.png
:alt: Create new Putty session
:align: center

----------------------------------

17. Now, using the menu at the left, go to the SSH section and then select the Auth item. This shows a number of Options. The only one we need is the very last – the location of the Private key file for authentication. Browse for it and select the right filename as before. Remember that the PRIVATE key files end in .ppk
Go back to top of the menu on the left and select Session.
SAVE the session definition again.

----------------------------------

.. image:: _images/17-puttygen.png
:alt: Session definition, location of private key
:align: center

----------------------------------

18. Now you can use the session information you saved by using the Load or Open button in the main PuTTY session screen.
This will open a terminal session box as seen here.
Login to the AREDN |trade| node as root.

----------------------------------

.. image:: _images/18-puttygen.png
:alt: Login as root
:align: center

----------------------------------

19. If you setup the PuTTY session correctly, it will find your private key file and ask you for the passphrase you chose to authenticate and use it.
If PuTTY cannot find the private key file, it will revert to prompting you for the password that you normally use on the node.

----------------------------------

.. image:: _images/19-puttygen.png
:alt: Enter passphrase to use SSH key
:align: center

----------------------------------

20. The correct passphrase was entered. The node’s banner appears in the terminal session window and we can now do anything we need to do.

----------------------------------

.. image:: _images/20-puttygen.png
:alt: Logged into node
:align: center




.. |trade| unicode:: U+02122 .. TRADE MARK SIGN
:ltrim:

29 changes: 19 additions & 10 deletions index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,15 @@ This documentation set consists of several sections which are shown in the navig
* The **Getting Started Guide** walks through the process of configuring an AREDN |trade| radio node to be part of a mesh network.
* The **Network Design Guide** provides background information and tips for planning and deploying a robust mesh network.
* The **Applications and Services Guide** discusses the types of programs or services that can be used across a mesh network. *NOTE: This section is incomplete while in progress.*
* The **How-to Guides** provide tips and techniques for various tasks.
* Finally, the **Appendix** contains supplementary information.

If you wish to locate specific topics within the documentation, you can type keywords into the *Search docs* field to display a list of items which match your search.

If you would like to see the documentation for a specific AREDN release, click on the **Read the Docs** label at the bottom of the navigation bar. This label shows the version you are currently viewing, but clicking the label bar opens a panel with several other options. Here you may choose to view another version of the documentation, and you can also download the entire documentation set in any of several formats *(PDF, ePub, HTML)* for offline use.

.. toctree::
:maxdepth: 1
:maxdepth: 2
:caption: Getting Started Guide
:hidden:

Expand All @@ -31,18 +32,18 @@ If you would like to see the documentation for a specific AREDN release, click o
arednGettingStarted/advanced_config

.. toctree::
:maxdepth: 1
:caption: Network Design Guide
:hidden:
:maxdepth: 2
:caption: Network Design Guide
:hidden:

arednNetworkDesign/networking_overview
arednNetworkDesign/network_topology
arednNetworkDesign/frequency_bands
arednNetworkDesign/channel_planning
arednNetworkDesign/network_modeling
arednNetworkDesign/networking_overview
arednNetworkDesign/network_topology
arednNetworkDesign/frequency_bands
arednNetworkDesign/channel_planning
arednNetworkDesign/network_modeling

.. toctree::
:maxdepth: 1
:maxdepth: 2
:caption: Applications and Services Guide
:hidden:

Expand All @@ -55,6 +56,14 @@ If you would like to see the documentation for a specific AREDN release, click o
arednServicesGuide/collaborative_editing
arednServicesGuide/other_programs

.. toctree::
:maxdepth: 2
:caption: How-to Guides
:hidden:

arednHow-toGuides/howto_overview
arednHow-toGuides/puttygen_ssh_keys

.. toctree::
:maxdepth: 1
:caption: Appendix
Expand Down

0 comments on commit 503f641

Please sign in to comment.