Documentation

SSH Keys

SSH Keys help speed up login to your KOS targets. Developing embedded devices requires users to frequently log in to the device under development, which requires them to enter the password for that device multiple times.

SSH keys provide a simple way to bypass the password prompt on login, allowing for quicker logins and the ability to use local scripts to interact with your target. You can add SSH keys via the regular method of generating an SSH key pair and coping public key to the remote server, but you will have to keep track of keys and update them when necessary.

KOS Studio simplifies this by automatically installing your keys as part of the software installation process when performed from your copy of KOS Studio. This means that you can set your SSH keys once in KOS Studio, and your keys will automatically be installed on every device you deploy to. SSH keys are local to your copy of KOS Studio and are only stored on your computer. Follow the instructions below to add your SSH public key to KOS Studio for easier device access.

Another common problem when developing for devices is the regeneration of device SSH keys on new installs, as well as IP addresses changing over time on devices. This can result in frequent SSH errors indicating that the keys have changed and that the old device keys need to be removed from the known_hosts file on your computer. Since this is such a common problem with device development, KOS provides a quick and easy solution in the form of an optional layer called kos-layer-sshhostkeys-fixed. By adding this layer to your images, every device you deploy to will have the same device side keys, minimizing the impact of changing IP addresses and fresh installs of test devices. This layer should not be used in production images as it represents a security risk.

Access SSH Keys

  1. Launch KOS Studio and log in.

  2. From the My Images windows, click on 'Settings' main settings.

  3. Select 'SSH Keys' from the settings menu.

View Existing SSH Keys

  1. Launch KOS Studio and log in.

  2. From the My Images windows, click on 'Settings' main settings.

  3. Select 'SSH Keys' from the settings menu.

  4. SSH Keys opens in a new window where all SSH Keys for your devices are available. Consider following :

  5. If no SSH keys are present, the system displays no keys are present and asks the user to create a new one.

  6. Each key displays and provides the SSH key’s name and user name.

Add SSH key

  1. Launch KOS Studio and log in.

  2. From the My Images windows, click on 'Settings' main settings.

  3. Select 'SSH Keys' from the settings menu.

  4. SSH Keys opens in a new window; click “Add SSH key”.

  5. This opens an Add New SSH Key pop-up.

  6. Provide following information :

    1. Name: The name should be unique within your SSH keys

    2. User: User for the SSH connection

    3. Type: Choose between Text and File.

    4. Key: If the type is selected as text, copy the content of your public key.

    5. Key File: If the type is selected as File, use the file picker to select the location of your public key and the appropriate .pub file.

  7. Click on Add; this will add the SSH key to your KOS Studio account, which can then be used to connect to your targets. Consider following :

  8. Once the SSH key has been added, the user can not update the provided key. So make sure correct information is provided at the time of creation.

Edit SSH Key

  1. Launch KOS Studio and log in.

  2. From the My Images windows, click on 'Settings' main settings.

  3. Select 'SSH Keys' from the settings menu.

  4. SSH Keys opens in a new window, displaying all available SSH Keys.

  5. Select the SSH key you want to edit and click on the edit icon edit.

  6. This displays a “Rename SSH key” pop-up where you can edit the following information:

    1. Name: The name should be unique to your SSH keys

    2. User: User for the SSH connection

  7. Click on Update. Consider following :

    1. Once the SSH key has been added, the user can not update the provided key. So make sure correct key information is provided at the time of creation.

Delete SSH Key

  1. Launch KOS Studio and log in.

  2. From the My Images windows, click on 'Settings' main settings.

  3. Select 'SSH Keys' from the settings menu.

  4. SSH Keys opens in a new window, displaying all available SSH Keys.

  5. Select the SSH key you want to delete and click the delete icon delete.

  6. The Delete confirmation pop-up displays, indicating that deleting will permanently delete the key.

  7. Click on Delete to confirm and delete the added SSK Key.

Previous
Next
On this page
Java Development
Seamlessly transition from Legacy+ systems to Freestyle microdosing and advanced distributed dispense systems.
UI Development
Using KOS SDKs, integrating Consumer and Non-consumer facing UIs becomes seamless, giving you less hassle and more time to create.
Video Library
Meet some of our development team, as they lead you through the tools, features, and tips and tricks of various KOS tools.
Resources
Familiarize yourself with KOS terminology, our reference materials, and explore additional resources that complement your KOS journey.
Copyright © 2024 TCCC. All rights reserved.