Skip to content

SFTP file upload to Apache SSHD via libssh fails #4147

@felixhaedicke

Description

@felixhaedicke

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions