![Siemens RUGGEDCOM ROS v4.3 User Manual Download Page 64](http://html.mh-extra.com/html/siemens/ruggedcom-ros-v4-3/ruggedcom-ros-v4-3_user-manual_385657064.webp)
Chapter 2
Using ROS
RUGGEDCOM ROS
User Guide
48
Adding a Public Key
The key must be in RFC4716 or PEM format, with any of the following header and footer lines:
-----BEGIN PUBLIC KEY-----
-----END PUBLIC KEY-----
-----BEGIN SSH2 PUBLIC KEY-----
-----END SSH2 PUBLIC KEY-----
-----BEGIN RSA PUBLIC KEY-----
-----END RSA PUBLIC KEY-----
The following is an example of a valid entry in the
sshpub.keys
file in PEM format:
1,userkey,admin,active,alice
---- BEGIN SSH2 PUBLIC KEY ----
AAAAB3NzaC1yc2EAAAABIwAAAQEARKXnmGRvzMyWVDsbq5VwpGGrlLQYCrjVEa
NdbXsphqYKop8V5VUeXFRAUFzOy82yk8TF/5JxGPWq6wRNjhnYR7IYK8XeURl/
z5K2XNRjnqTZSFwkhaUVJeduvjGgOlNN4yvgUwF3n0idU9k3E1q/na+LmYIeGhOwzCqoAc
ipHAdR4fhD5ugDikTSZIbj9eFJfP09ekImMLHwbBry0SSBpqAKbwVdWEXIKQ47
zz7ao2/rs3rSV16IXSq3Qe8VZh2irah0Md6JFMOX2qm9fo1I62q1DDgheCOsOiGPf4xerH
rI2cs6FT31rAdx2JOjvw==
---- END SSH2 PUBLIC KEY ----
The following is an example of a valid entry in the
sshpub.keys
file in in RFC4716 format:
2,userkey,admin,active,bob
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDH0NivR8zzbTxlecvFPzR/
GR24NrRJa0Lc7scNsWRgi0XulHuGrRLRspdig88Y8CqhRI49XJx7uLJe0Su3RvyNYz1jkdSwHq2hSZCpukJxJ6CK95Po/
sVa5Gq2gMaHowAJywzK/eM6i/jc125lRxFPob3PCvmIWz5z3WAJBrQU1IDPHDets511WMu8O9/
mAPZRwjqrWhRsqmcXZuv5oo54wIopCAZSo20SPzM2VmXFuUsEwDkvYMXLJK1koJPbDjH7yFFC7mwK2eMU/
oMFFn934cbO5N6etsJSvplYQ4pMCw6Ok8Q/bB5cPSOa/rAt bob@work
IMPORTANT!
The content of the
sshaddpub.keys
file must follow the same syntax as the
sshpub.keys
file.
RUGGEDCOM ROS allows only 16 user key entries to be stored. Each key entry must meet the following limits:
• Key type must be either RSA 2048 bits or RSA 3072 bits
• Key size must not exceed 4000 base64 encoded characters
• Entry Type in the header must not exceed 8 ASCII characters
• Access Level in the header must not exceed 8 ASCII characters (
operator
is maximum)
• Revocation status in the header must not exceed 8 ASCII characters (
inactive
is maximum)
• User Name must not exceed 12 ASCII characters
There are two ways to update
sshpub.keys
. Users can either upload a locally-created file directly to the
sshpub.keys
file, which will replace the content in flash with the uploaded content. Or, users can upload a locally-
created file to the
sshaddpub.keys
file, which will keep the existing entries in the
sshpub.keys
file and append the
new entries.
To add keys, do the following:
1. Create a public key file via a host computer.
2. Transfer the public key file to the device using SFTP or Xmodem. For more information about transferring
files, refer to
Section 3.4, “Uploading/Downloading Files”
.
3. Log in to the device as an admin user and access the CLI shell. For more information about accessing the CLI
shell, refer to
Section 2.6, “Using the Command Line Interface”
.