Skip to content

Commit

Permalink
Added ssh option to not use shared connections
Browse files Browse the repository at this point in the history
Shared ssh session prevent exec() from firing the callback.
  • Loading branch information
udondan committed Apr 4, 2014
1 parent 799d13f commit ea2f6fc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 3 additions & 2 deletions package.json
Expand Up @@ -6,11 +6,12 @@
"Ben Evans <ben@bensbit.co.uk>",
"Gabriel Preston <gpreston@gmail.com>",
"Joseph Silvestre <joseph.silvestre38@gmail.com>",
"appr <appr@appr.me>"
"appr <appr@appr.me>",
"Daniel Phatthanan <daniel@phatthanan.com>"
],
"name": "scp",
"description": "remote file copy wrapper",
"version": "0.0.3",
"version": "0.0.4",
"repository": {
"type": "git",
"url": "git://github.com/ecto/node-scp.git"
Expand Down
2 changes: 2 additions & 0 deletions scp.js
Expand Up @@ -15,6 +15,7 @@ scp.send = function (options, cb) {
'-r',
'-P',
(options.port == undefined ? '22' : options.port),
'-o "ControlMaster no"', //callback is not fired if ssh sessions are shared
options.file,
(options.user == undefined ? '' : options.user+'@') + options.host + ':' + options.path,
];
Expand All @@ -36,6 +37,7 @@ scp.get = function (options, cb) {
'-r',
'-P',
(options.port == undefined ? '22' : options.port),
'-o "ControlMaster no"', //callback is not fired if ssh sessions are shared
(options.user == undefined ? '' : options.user+'@') + options.host + ':' + options.file,
options.path
];
Expand Down

0 comments on commit ea2f6fc

Please sign in to comment.