[yocto] How to fix SSH interfactive promotion for Yocto Linux embedded system

JH jupiter.hce at gmail.com
Wed Jul 24 18:09:44 PDT 2019


Hi,

I am running busybox in imx6 using ssh and scp in shell scripts, but I
troubled to run the scripts to run ssh and scp, it did not have ssh
options stopped at following:

scp .... -o ServerAliveInterval=60 -o ExitOnForwardFailure=yes -o
ServerAliveCountMax=3 -o StrictHostKeyChecking=no -o
UserKnownHostsFile=/dev/null ...

ECDSA key fingerprint is SHA256:rAS+4gVqPJj7yfVDHlhG1g5bQP+VgMczooGifv+H9vk.
Are you sure you want to continue connecting (yes/no)

cp: can't stat '-o': No such file or directory
cp: can't stat 'ServerAliveInterval=60': No such file or directory
cp: can't stat '-o': No such file or directory
cp: can't stat 'ExitOnForwardFailure=yes': No such file or directory
cp: can't stat '-o': No such file or directory
cp: can't stat 'ServerAliveCountMax=3': No such file or directory
cp: can't stat '-o': No such file or directory
cp: can't stat 'StrictHostKeyChecking=no': No such file or directory
cp: can't stat '-o': No such file or directory
cp: can't stat 'UserKnownHostsFile=/dev/null': No such file or directory
root at solar:/tmp# ssh-keyscan SaController >> /home/root/.ssh/known_hosts

What will be effective and simple solution in Yocto?

- Replace busybox by bash recipe.

- Install openssh-client to run ssh-keyscan to write the target to
.ssh/known_hosts

Appreciate your advice for Yocto Linux embedded system.

Thank you.

Kind regards,

- jupiter


More information about the yocto mailing list