Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SCP from host to DTS doesn't work #840

Closed
m-iwanicki opened this issue May 23, 2024 · 3 comments
Closed

SCP from host to DTS doesn't work #840

m-iwanicki opened this issue May 23, 2024 · 3 comments
Labels
bug Something isn't working DasharoToolsSuite qemu_q35 QEMU Q35

Comments

@m-iwanicki
Copy link

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

  • decompress .wic.gz DTS image

  • run this image on QEMU from osfv uefi-sb-release branch:

    DRIVE_PATH=~/Downloads/dts-base-image-v1.2.21.wic ./scripts/ci/qemu-run.sh graphic os
  • boot into DTS and enable ssh server

  • Try to send any file from host to DTS via SCP:

    echo "abcd" > abcd
    scp -P 5222 abcd root@localhost:/tmp/abcd`

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
Copy link
Member

mkopec commented May 24, 2024

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

@m-iwanicki
Copy link
Author

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

m-iwanicki added a commit to Dasharo/meta-dts that referenced this issue May 24, 2024
macpijan pushed a commit to Dasharo/meta-dts that referenced this issue Jun 24, 2024
@macpijan
Copy link
Contributor

Fixed in: Dasharo/meta-dts#124

PLangowski pushed a commit to Dasharo/meta-dts that referenced this issue Sep 27, 2024
PLangowski pushed a commit to Dasharo/meta-dts that referenced this issue Sep 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working DasharoToolsSuite qemu_q35 QEMU Q35
Projects
None yet
Development

No branches or pull requests

4 participants