Dasharo / dasharo-issues

The Dasharo issue tracker
https://dasharo.com/
23 stars 0 forks source link

SCP from host to DTS doesn't work #840

Closed m-iwanicki closed 15 hours ago

m-iwanicki commented 1 month ago

Component

Dasharo Tools Suite

Device

QEMU Q35 Emulator

Dasharo version

No response

Dasharo Tools Suite version

1.2.21

Brief summary

SCP doesn't work, returns scp: Connection closed

How reproducible

Every time

How to reproduce

Expected behavior

scp -P 5222 abcd root@localhost:/tmp/abcd
abcd               100%    5    28.1KB/s   00:00

Actual behavior

scp -P 5222 abcd root@localhost:/tmp/abcd
scp: Connection closed

Screenshots

No response

Additional context

SCP also didn't work on NovaCustom laptop.

Solutions you've tried

Change Subsystem sftp /usr/libexec/sftp-server to Subsystem sftp internal-sftp in /etc/ssh/sshd_config. After that scp works.

mkopec commented 1 month ago

-O flag for scp is needed when copying to dts for some reason.

m-iwanicki commented 1 month ago

It might be because there is no sftp-server installed, there is no file at /usr/libexec/sftp-server. So we can either add sftp-server or change sshd_config to use internal-sftp

macpijan commented 15 hours ago

Fixed in: https://github.com/Dasharo/meta-dts/pull/124