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

Burton, Ross ross.burton at intel.com
Thu Jul 25 01:52:37 PDT 2019


You're using busybox's scp, which is limited compared to openssh.  If
you want to use openssh's binaries install openssh-clients, otherwise
adapt your options to work with busybox's scp.

Ross

On Thu, 25 Jul 2019 at 02:10, JH <jupiter.hce at gmail.com> wrote:
>
> 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
> --
> _______________________________________________
> yocto mailing list
> yocto at yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto


More information about the yocto mailing list