Answer the question
In order to leave comments, you need to log in
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
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 questionAsk a Question
731 491 924 answers to any question