Hi,
I am trying to test the SCP command in remote tests, and I did something like:
testexec.CommandContext(ctx, "scp", "-P", port, localPath, dutDirWithHostname).Run(testexec.DumpLogOnError)
In my code to copy local temp files to the DUT. It worked well on some lab machines, but on machines of chromeos8*, I got:
Warning: Permanently added 'chromeos8-row18-rack17-host20,10.xxx.xxx.xxx' (ED25519) to the list of known hosts.
no such identity: /home/chromeos-test/.ssh/autotest_internal_rsa: No such file or directory
chromeos-test@chromeos8-row18-rack17-host20: Permission denied (publickey,keyboard-interactive).
Connection closed
Does anyone know how to solve this? Do I need to add some identity files under such a situation? Thanks in advance!