Skip to content

Commit 6e78ece

Browse files
committed
Fix: use the port in get too
1 parent fb54b1e commit 6e78ece

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

scp.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ scp.get = function (options, cb) {
3434
var command = [
3535
'scp',
3636
'-r',
37+
'-P',
38+
(options.port == undefined) ? '22' : options.port),
3739
(options.user == undefined ? '' : options.user+'@') + options.host + ':' + options.file,
3840
options.path
3941
];

0 commit comments

Comments
 (0)