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

Bug: scp into guest-vm doesn't work #930

Closed
Omrigan opened this issue May 7, 2024 · 1 comment · Fixed by #1051
Closed

Bug: scp into guest-vm doesn't work #930

Omrigan opened this issue May 7, 2024 · 1 comment · Fixed by #1051
Assignees
Labels
c/autoscaling/neonvm Component: autoscaling: NeonVM t/bug Issue Type: Bug

Comments

@Omrigan
Copy link
Contributor

Omrigan commented May 7, 2024

Environment

Steps to reproduce

> scp -v test guest-vm:/root/test
...
debug1: Sending subsystem: sftp
scp: Connection closed
...

Expected result

Scp works out of the box

Actual result

Other logs, links

  • ...
@Omrigan Omrigan added t/bug Issue Type: Bug c/autoscaling/neonvm Component: autoscaling: NeonVM labels May 7, 2024
@kelvich
Copy link
Contributor

kelvich commented May 7, 2024

Found one workaround:

inside vm: apt update && apt install openssh-clients
now you can scp with -O flag: scp -O foo.txt guest-vm:~/

@mikhail-sakhnov mikhail-sakhnov self-assigned this Aug 23, 2024
mikhail-sakhnov added a commit that referenced this issue Aug 29, 2024
Change sshd_config to let scp command work outside of the box.
Add e2e test for scp command.

The root cause for non-working scp was config directive ```Subsystem
sftp /usr/lib/ssh/sftp-server```

We don't have that binary in the guest vm. There are 2 ways to fix it -
either add binary during the image build or change the configuration to
use embedded realization of the sftp subsystem. I chose the second
option since it is a bit easier.

More context: https://man.openbsd.org/sshd_config#Subsystem

Closes #930

Signed-off-by: Misha Sakhnov <misha@neon.tech>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c/autoscaling/neonvm Component: autoscaling: NeonVM t/bug Issue Type: Bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants