Additional Steps for Configuring a Collection Group that Uses SFTP
If you add a collection group and you select SFTP for the protocol that is used for sending CSV files, you must use this task to generate a host key from the push receiver (SDM server) and export it to the device(s).
See the Add a Collection Group section for more information.
-
Log in to the SDM server as the root user.
su root
-
Change to the ssh directory. For example:
/etc/ssh
- Enter the ssh-keygen -e script.
-
When prompted, enter the following path for the generated host key:
/etc/ssh/ssh_host_dsa_key.pub
-
Copy the base64 encoded public file making sure in include the BEGIN and END markers as they are specified by RFC 4716 (The Secure Shell (SSH) Public Key File Format). For example:
--- BEGIN SSH2 KEY --- <generated public key> --- END SSH2 KEY ---
- Log into the device that is communicating with SDM using SFTP and access the CLI.
-
From admin mode use the
ssh-pub-key command to import the host key to the device.
For importing a host key, this command takes the format:
ORACLE# ssh-pub-key import known-host <sdm_server_name>
- Paste the host key with the bracketing BEGIN and END markers at the cursor point.
- Enter a semi-colon (;) to signal the end of the imported host key.
-
Follow directions to save and activate the configuration. For example, the entire import sequence is shown below:
ORACLE# ssh-pub-key import known-host fedallah IMPORTANT: Please paste ssh public key in the format defined in rfc4716. Terminate the key with ";" to exit....... ---- BEGIN SSH2 PUBLIC KEY ---- Comment: "2048-bit RSA, converted from OpenSSH by klee@acme54" AAAAB3NzaC1yc2EAAAABIwAAAQEA7OBf08jJe7MSMgerjDTgZpbPblrX4n17LQJgPC7clL cDGEtKSiVt5MjcSav3v6AEN2pYZihOxd2Zzismpoo019kkJ56s/IjGstEzqXMKHKUr9mBV qvqIEOTqbowEi5sz2AP31GUjQTCKZRF1XOQx8A44vHZCum93/jfNRsnWQ1mhHmaZMmT2LS hOr4J/Nlp+vpsvpdrolV6Ftz5eiVfgocxrDrjNcVtsAMyLBpDdL6e9XebQzGSS92TPuKP/ yqzLJ2G5NVFhxdw5i+FvdHz1vBdvB505y2QPj/iz1u3TA/3O7tyntBOb7beDyIrg64Azc8 G7E3AGiH49LnBtlQf/aw== ---- END SSH2 PUBLIC KEY ---- ; SSH public key imported successfully.... WARNING: Configuration changed, run "save-config" command to save it and run "activate-config" to activate the changes ORACLE# save-config checking configuration --------------------------------------------------------------------- ... ... ... --------------------------------------------------------------------- Save-Config received, processing. waiting for request to finish Request to 'SAVE-CONFIG' has Finished, Save complete Currently active and saved configurations do not match! To sync & activate, run 'activate-config' or 'reboot activate'. ORACLE# activate-config Activate-Config received, processing. waiting for request to finish SD is not QOS-capable Request to 'ACTIVATE-CONFIG' has Finished, Activate Complete ORACLE#
- Enter the show security ssh-pub-key command to verify the host key.
- Repeat steps 6 through 11 to import the host key for additional devices.