N
N
Nicholas2016-05-16 16:16:37
JavaScript
Nicholas, 2016-05-16 16:16:37

Why does it take a long time to upload files via ssh to the server?

Is it always slow to download via ssh?
Uploading a file 35.0 kB (34,952 bytes) 2 minutes!!!!!!
I am using https://www.npmjs.com/package/simple-ssh

console.log("start load: "+new Date());

ssh.exec('cat > /path/to/remote/file', {
   in: fs.readFileSync('/path/to/local/file'),
            exit: function(code) {
                console.log("final load: "+new Date());
            }
}).start();

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Egor Kazantsev, 2016-05-16
@saintbyte

FTP The protocol is faster, at least by the fact that it is not encrypted, but in general rsync is strong.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question