ssh-spawner:spawn()但对于ssh

时间:2021-05-26 18:34:08
【文件属性】:
文件名称:ssh-spawner:spawn()但对于ssh
文件大小:7KB
文件格式:ZIP
更新时间:2021-05-26 18:34:08
JavaScript SSH Spawner 为给定的配置创建一个spawn(bin, argv, opts)函数。 通常与npm i process-queue 。 用法 它应该生成一个spawn函数,就像节点将具有的一样,只是保留了SSH env设置。 因此,可以在脚本中使用远程端的HOME和PATH之类的东西。 var spawner = require ( 'ssh-spawner' ) . createSpwaner ( { user : 'root' , server : 'myserver.local' , allowPasswords : false , // defaults to false port : 22 , // defaults to 22 envMode : 'cmd' // one of 'inline' 'cmd' or 'default' } )
【文件预览】:
ssh-spawner-master
----.gitignore(597B)
----test.sh(380B)
----package.json(714B)
----Vagrantfile(5KB)
----LICENSE(1KB)
----index.js(3KB)
----README.md(669B)
----tests()
--------index.js(674B)

网友评论