Code Monkey home page Code Monkey logo

Comments (5)

ahoelzemann avatar ahoelzemann commented on May 28, 2024

Dart Version 2.16.1
Flutter Version: 2.10.1

I will attach the corresponding exception

flutter: SftpStatusError: Failure(code 4)
flutter: SftpStatusError: Failure(code 4)
flutter: #0      SftpClient.open (package:dartssh2/src/sftp/sftp_client.dart:63:5)
<asynchronous suspension>

from dartssh2.

xtyxtyx avatar xtyxtyx commented on May 28, 2024

The OpenSSH SFTP server use 'Failure' message for many errors and it's hard to tell the specific reason. This usually happens when the permissions is not enough, or the filesystem is read-only.
Does your account have enough permission to write to the remote destination?

from dartssh2.

ahoelzemann avatar ahoelzemann commented on May 28, 2024

Hey, thank you very much for quick answer!
permission is granted, I also tried out the admin user of the server. Do you have another idea?

from dartssh2.

xtyxtyx avatar xtyxtyx commented on May 28, 2024

Currently I have no other ideas about the error. However it may help to inspect the logs from sftp-server and see what actually happened. Detailed instructions can be found here: https://access.redhat.com/articles/1374633.

from dartssh2.

ahoelzemann avatar ahoelzemann commented on May 28, 2024

Thanks for the help @xtyxtyx . I don't get any specific error message.

It seems like the session closes immidiately.

Mar  6 18:35:01 xxxxxxx CRON[2024678]: pam_unix(cron:session): session opened for user root by (uid=0)
Mar  6 18:35:01 xxxxxxx CRON[2024678]: pam_unix(cron:session): session closed for user root

Do you have any idea?

from dartssh2.

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.