Giter Club home page Giter Club logo

Comments (6)

NobodyXu avatar NobodyXu commented on May 26, 2024 2

@sourcefrog openssh-sftp-client-0.10.0 is released with the refactor done.

Now you can simply pass stdin/stdout of the remote sftp subsystem to this highlevel::Sftp::new.

It will not be long before openssh-rust/openssh#66 is also merged in so that you can use this crate with openssh.

from openssh-sftp-client.

elwerene avatar elwerene commented on May 26, 2024 1

You are right, I made a connect method and did not return the child so it went out of scope 🤦
Thanks!

from openssh-sftp-client.

NobodyXu avatar NobodyXu commented on May 26, 2024 1

@sourcefrog openssh-0.9.1 has released, with support for sftp subsystem, which can be used with openssh-sftp-client.

from openssh-sftp-client.

NobodyXu avatar NobodyXu commented on May 26, 2024

Hi, nice to see this library.

It looks like it is meant to be used over the top of an SSH transport implementation that does authentication and encryption? Could you give some example code of how to connect it to OpenSSH or whatever transport is supported?

Yes.

It can be used with openssh once openssh-rust/openssh#66 is merged in, where I wil refactor this crate so that you can use this crate by providing one input and one output stream.

from openssh-sftp-client.

elwerene avatar elwerene commented on May 26, 2024

I tried playing around with the current master of openssh-rust/openssh after openssh-rust/openssh#66 was merged. But I always get this error: Background task failed: read/flush task failed..

My code is very similar to the code in tests/openssh.rs.

from openssh-sftp-client.

NobodyXu avatar NobodyXu commented on May 26, 2024

Background task failed: read/flush task failed.

This means that the stdin/stdout is closed.

@elwerene Did you accidentally drop child before Sftp::close is called?

from openssh-sftp-client.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.