任何人都知道有关用node.js编写的scp(安全副本)的项目吗? [英] Anyone knows any project about scp (secure copy) written in node.js ?
问题描述
我正在使用ssh2(https://github.com/lepture/node-scp2)节点模块,但它不支持scp,它只支持stftp。
但我需要scp node.js实现,因为我的开发目标只允许scp而不是stftp。
我发现了一个支持scp的几个node.js项目,如下所示。 br $>
* scp2(https://github.com/lepture/node-scp2)
- 它使用上面的ssh2 node.js模块,所以它使用sftp来传输文件。
实际上它不是关于scp的实现。
* node-scp(https://github.com/ecto/node-scp)
- 它将子进程分叉为'scp'。
因此,它只是Host-PC的scp命令的包装器。它不能在系统上没有默认的scp命令。
所以,我需要另一个node.js scp实现,你能帮我找一个合适的node.js module?
I'm using ssh2(https://github.com/lepture/node-scp2) node module, but it doesn't support scp, it is only support stftp.
But I need scp node.js implementation as my development target is only allow scp not stftp.
I found a several node.js project to support scp like following.
* scp2( https://github.com/lepture/node-scp2 )
- It use above ssh2 node.js modules, so it is using sftp to transfer file.
Actually it is not an implementation about scp.
* node-scp ( https://github.com/ecto/node-scp )
- It fork child process as 'scp'.
So, it is just wrapper for Host-PC's scp command. It doesn't work not having scp command on the system as default.
So, I need another node.js scp implementation, could you help me to find a proper node.js module ?
推荐答案
SCP?当然,但它已经实施了。强烈推荐: http://www.scp-wiki.net/ [ ^ ]。
也许,你仍然没有得到我的回答的意思。在这种情况下,我会解释。
首先,我上面提到的网站非常有趣。 ( 免责声明 :我与此网站没有关联,也没有兴趣推广它。我只是分享有趣的阅读。它与CodeProject有一些非平凡和微妙的相关性Q& A论坛。)
此外,它应该证明依赖于某些(实际上是大多数)缩写而不解释它是一个坏主意。 SCP可能意味着:
1)安全复制,2)FreeSpace 2源代码项目,3)服务控制点,4)服务类提供者,5)会话控制协议等等。 :-)
祝你好运,
-SA
SCP? Sure, but it is already implemented. And highly recommended: http://www.scp-wiki.net/[^].
Perhaps, you still did not get the meaning of my answer. In this case, I'll explain.
First of all, the site I references above makes pretty interesting reading. (Disclaimer: I have no association with this site and no interest in promoting it. I'm just sharing interesting reading. It has some non-trivial and subtle relevance to CodeProject Q&A forum.)
Also, it should demonstrate that relying on some (actually most) abbreviations, without explaining it, is a bad idea. SCP may mean:
1) Secure Copy, 2) FreeSpace 2 Source Code Project, 3) Service Control Point, 4) Service class provider, 5) Session Control Protocol, and a lot more. :-)
Wish you the best of luck,
—SA
>
这篇关于任何人都知道有关用node.js编写的scp(安全副本)的项目吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!