spmjs / node-scp2

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

--port/-p option not working on command line #73

Open FallenRiteMonk opened 8 years ago

FallenRiteMonk commented 8 years ago

running the command scp2 -p 1234 localfile server throws:

{ [Error: connect ECONNREFUSED SERVER-IP]
  code: 'ECONNREFUSED',
  errno: 'ECONNREFUSED',
  syscall: 'connect',
  address: 'SERVER-IP',
  port: 22,
  level: 'client-socket' }

notice that the port on the error is still 22 and not 1234 as specified

csphoenix1 commented 7 years ago

Solved here : https://github.com/spmjs/node-scp2/pull/82 Hope it work well :) Please, tell me if it work :) Thank you.