spmjs / node-scp2

[MAINTAINER WANTED] A pure javascript scp program based on ssh2.
384 stars 96 forks source link

connection seems to stay open when copying from server to client #30

Closed brendanjerwin closed 9 years ago

brendanjerwin commented 9 years ago

Using this form:

client.scp({
    host: 'example.com',
    username: 'admin',
    password: 'password',
    path: '/home/admin/file.txt'
}, './', function(err) {})

It seems that the ssh connection is staying open. No problem when copying from the client to the server though, but I see they take two different code paths.