User`s guide
234
Configuration using the command line interface
Generate the SSH V1 private key using the genkey command as follows:
genkey <keybits> <filename> -ssh1 where <keybits> is one of the following
values; 384, 512, 768, 1024, 1536 or 2048 and
<filename> is the name for the file, e.g.
“privssh1.pem” as described for the web version of this procedure.
Generate the SSH V2 private key using the genkey command as per step 1 but this time
omit the
–ssh1 switch. For example:
genkey 1024 privssh2.pem.
Set the first private key as the SSH Host key 1 using the following command:
ssh 0 hostkey1 privssh1.pem
Set the second private key as SSH Host Key 2 using the following command:
ssh 0 hostkey2 privssh2.pem
Save the configuration:
config 0 save
SSH Authentication with a public/private keypair
Once SSH access has been configured and confirmed to be working, RSA key pair
authentication can be added and used to replace password authentication.
This process will involve the use of PuTTYgen to create public and private keys. Please see
the Technical Notes section on the Digi website for full details on how to perform this
procedure.
FTP Relay
Configuration – Network > FTP Relay
The FTP Relay agents allow any files to be transferred onto the router by a specified user
using the File Transfer Protocol to be temporarily stored in memory and then relayed to a
specific FTP host. This is useful when the router is being used to collect data files from a
locally attached device such as a webcam which must then be to a host system over a
slower data connection such as W-WAN. In effect, the router acts as a temporary data
buffer for the files.
The FTP Relay Agent may also be configured to email (as an attachment) any file that it was
unable to transfer to the FTP server. To facilitate this, set the Email Template, To, From and
Subject parameters as appropriate and also configure the SMTP client (Configuration –
Alarms > SMTP Account).
FTP Relay n
Configuration – Network > FTP Relay> FTP Relay n
There are two FTP Relay Agents available, with a separate web page for each. For command
line configuration, the instance number can be 0 or 1.
Relay files for user locuser to FTP Server ftphost