如题,请大神支招~~~
回复 (16)
R
child_process...
I
引用 reverlandchild\ process...
@reverland 需要ssh库的
R
引用 i5ting@reverland 需要ssh库的
@i5ting = =ssh库是啥意思
I
引用 reverland@i5ting = =ssh库是啥意思
@reverland scp是基于ssh协议的,so。。。
I
R
引用 i5ting@reverland 比如https://github.com/mscdex/ssh2
@i5ting child_process直接scp。。。
I
引用 reverland@i5ting child\ process直接scp。。。
@reverland 不行的,不信你试试,哈哈
R
引用 i5ting@reverland 不行的,不信你试试,哈哈
@i5ting 额。。。明天试试。。。
Y
引用 i5ting@reverland 需要ssh库的
@i5ting 昨晚试了下这个库https://github.com/spmjs/node-scp2 成功了~
Y
引用 reverland@i5ting 额。。。明天试试。。。
@reverland 昨晚试了下这个库https://github.com/spmjs/node-scp2 成功了~
Y
直接用的用户名:密码@地址:路径
I
引用 yuanzhhh@reverland 昨晚试了下这个库https://github.com/spmjs/node scp2 成功了
@yuanzhhh shipit就是这种原理
R
引用 i5ting@reverland 不行的,不信你试试,哈哈
@i5ting 我这里可以
> fs.existsSync('/tmp/.zshrc');
false
> var scp = exec('scp $HOME/.zshrc reverland@localhost:/tmp/');
undefined
> fs.existsSync('/tmp/.zshrc');
true
I
引用 reverland@i5ting 我这里可以
@reverland 你这是依赖scp命令的,哈哈
Y
引用 i5ting@yuanzhhh shipit就是这种原理
@i5ting 嗯嗯,谢谢 :P
R
引用 i5ting@reverland 你这是依赖scp命令的,哈哈
@i5ting 233就是这意思,还以为怎么回事。。。
参与回复
登录后即可参与回复。登录