Versionen im Vergleich

Schlüssel

  • Diese Zeile wurde hinzugefügt.
  • Diese Zeile wurde entfernt.
  • Formatierung wurde geändert.
Seiteneigenschaften



Description:
This document describes how to use the free SSH client PuTTY to set up a LANCOM router to use an SSH login with public-key authentication.


Requirements:

Background to PuTTY:
PuTTY is developed by Simon Tatham and is a free SSH and Telnet client for Microsoft Windows, Mac OS and UNIX. It sets up
an
an encrypted connection from a computer to a server. Before connecting, the user'
s identity
dentity is verified with one of the most commonplace methods
of

Procedure:
1) The first step is to set the SSH authentication method in the configuration of LANCOM router. This is located under
Configuration->
Management
->
Admin
->
Access rights
->
From remote networks
->
SSH.
The following alternatives are available here:
        • Public key or password:
          With this option, public-key authentication is attempted first. If this should fail, then a password query is issued.
        • Public key:
          With this option, only public-key authentication is attempted.
        • Password:
          Public-key authentication is switched off and a password query is issued.
Image Removed
Image Added
2) Next, the private and public keys must be generated. To do this, start the PuTTY key generator.
Image Removed
Image Added
3) As shown in this image, take
the
the default settings and generate the keys:
Image Removed
Image Added
4) Store the private and the public key on your local computer.
Image Removed
Image Added
5) The key created by PuTTY must now be adjusted. To do this, open the stored public key with a text editor.
6) Delete the text selected in the image. 
Image Removed
Image Added
7) Place the
attribute
attribute ssh-rsa in front of the actual key and remove the line breaks so that the entire key is on the first line.
Image Removed
Image Added
8) Specify the user for this key at the end of the key, in this
case
case root.
9) Save from the edited key.
Image Removed
Image Added
10) Now you open
a
WEBconfig session on your router and log in.
Image Removed
Image Added
11) Select the
item
item File management
->
Upload certificate or file.
Image Removed
Image Added
12) Select the file
type
type SSH - accepted public keys.
13)
Under
Under File name select the newly saved public key and start the upload.
14) Now open the SSH
client
client PuTTY and, under the item Connection
->
SSH
->
Auth, select the public key you saved previously.
Image Removed
Image Added
15) Now go to the session and establish an SSH connection to the router.
Image Removed

Image Added

16) Login as the

user

user root. Authentication now takes place using the public key.

Image Removed

Image Added