Install SSH Keys on Yocto Project* Target
Two tools – data streams optimizer and cache configurator – need to be able to automatically connect the host system to the target system via SSH. If you would like your target system to be password-protected, Intel recommends creating a public SSH key and installing it on the target system. Otherwise, you will need to enter the password into a plaintext file when using these tools.
To create a public SSH key and install it on the target system:
- On the host system, generate an SSH key:ssh-keygen -t rsa -b 3072
- Copy the SSH key to the target system. Replace<target>with the IP address or hostname of the target system.ssh-copy-id root@<target>cat .ssh/id_rsa.pub | ssh <user>@<target> 'cat >> .ssh/authorized_keys'
- Test the installed key:ssh root@<target> ls
- Confirm that the connection is established without additional prompts.