Failed to call SCP in remote tests

4 views
Skip to first unread message

Zikai Chen

unread,
Jun 22, 2024, 1:01:41 AM (11 days ago) Jun 22
to tast-users
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!

Seewai Fu

unread,
Jun 22, 2024, 1:04:31 AM (11 days ago) Jun 22
to Zikai Chen, tast-users
Why do you need to use "scp"? Can you use linuxssh.GetFile(....)?

--
You received this message because you are subscribed to the Google Groups "tast-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tast-users+...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/tast-users/a02de07f-536c-477f-a4ab-2cbeed0ccdfdn%40chromium.org.

Zikai Chen

unread,
Jun 24, 2024, 10:57:47 AM (9 days ago) Jun 24
to tast-users, Seewai Fu, tast-users, Zikai Chen
I just want to test the functionality of "SCP" here so I used "SCP" instead of linuxssh.GetFile(....).

But I already discovered that the problem was due to the worker machine logging in as "chromeos-test" to the chromeos8* DUTs. If I force to log in as "root" then the SCP would be successful. I think the cause might be chromeos8* devices missing in the SSH config on the worker machine.
Reply all
Reply to author
Forward
0 new messages