Giter Site home page Giter Site logo

sftp upload file problem about reverse_ssh HOT 5 CLOSED

tdragon6 avatar tdragon6 commented on May 31, 2024
sftp upload file problem

from reverse_ssh.

Comments (5)

tdragon6 avatar tdragon6 commented on May 31, 2024

Also sometimes results in disconnection from the target host.

from reverse_ssh.

NHAS avatar NHAS commented on May 31, 2024

Howdy, that's very odd I haven't had that issue.

Can you give me more details?

What version of rssh are you using?

Is the high resource usage on the target side or on your side?

Do you have client or server logs when a disconnection happens?

And finally how big are the resources you're moving?

from reverse_ssh.

tdragon6 avatar tdragon6 commented on May 31, 2024

This problem exists when using sftp to transfer any file size. I tested that the size of the transfer is about 50MB. The specific operation is as follows:

  1. sftp -J RsshIP:3232 SessionID

  2. sftp>put /LocalFile

  3. At this time, sftp is transferring data.

  4. At this time, using ssh -J or sftp -J to establish an additional connection with the target will be very slow and the operation after the connection will be delayed.

from reverse_ssh.

NHAS avatar NHAS commented on May 31, 2024

Hmmm. So, the rssh client starts the aftp handler in a different thread. I think you might be running into bandwidth issues there?

I'll give it a test on my local network and see if I can replicate. The sftp stuff gets passed off to a library however.

from reverse_ssh.

NHAS avatar NHAS commented on May 31, 2024

So unfortunately I cant replicate this behavior on my machine.
What might be happening in your case is the CPU usage spikes dramatically when you use sftp/scp (and is unfortunately outside of my control) and this may cause the host machine to become unresponsive.

I tried by uploading and downloading a 2GB file, and the box did spike to using 99% cpu. But thats all I can see, no disconnections or slowness in connecting to the machine during the copy op.

If you have any more information or logs around the issue I'd be happy to reopen then issue :)

from reverse_ssh.

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.