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

SFTP file upload to Apache SSHD via libssh fails #4147

Closed
felixhaedicke opened this issue Jul 24, 2019 · 0 comments
Closed

SFTP file upload to Apache SSHD via libssh fails #4147

felixhaedicke opened this issue Jul 24, 2019 · 0 comments
Labels

Comments

@felixhaedicke
Copy link
Contributor

I did this

  1. Get Apache SSHD 2.2.0 from https://mina.apache.org/sshd-project/
  2. Launch Apache SSHD
  cd apache-sshd-2.2.0/bin
  ./sshd.sh
  1. Upload file to our Apache SSHD server
  curl sftp://localhost:8000/~/TestUploadFile --insecure --upload-file ~/TestFile

Result:

curl: (79) Error in the SSH layer

curl output with --verbose

But upload it is working fine with parameter --append.

curl/libcurl version

23c99f6

curl 7.66.0-DEV (x86_64-pc-linux-gnu) libcurl/7.66.0-DEV OpenSSL/1.1.1c zlib/1.2.11 libssh/0.8.7/openssl/zlib
Release-Date: [unreleased]
Protocols: dict file ftp ftps gopher http https imap imaps pop3 pop3s rtsp scp sftp smb smbs smtp smtps telnet tftp
Features: AsynchDNS Debug HTTPS-proxy IPv6 Largefile libz NTLM NTLM_WB SSL TLS-SRP TrackMemory UnixSockets

operating system

Debian GNU/Linux 10

felixhaedicke pushed a commit to felixhaedicke/curl that referenced this issue Jul 24, 2019
Specifying O_APPEND in conjunction with O_TRUNC and O_CREAT does not
make much sense. And this combination of flags is not accepted by all
SFTP servers (at least not Apache SSHD).

Closes curl#4147
felixhaedicke added a commit to felixhaedicke/curl that referenced this issue Jul 24, 2019
Specifying O_APPEND in conjunction with O_TRUNC and O_CREAT does not
make much sense. And this combination of flags is not accepted by all
SFTP servers (at least not Apache SSHD).

Closes curl#4147
@bagder bagder closed this as completed in 6261749 Jul 25, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Oct 23, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Development

Successfully merging a pull request may close this issue.

2 participants