Comments (4)
如果这行代码可以读到 文件内容就可以。
open("/root/.ssh/id_rsa").read()
from webhookit.
您好,谢谢您的回复;
我刚看到代码,我建议您可以在 WEBHOOKIT_CONFIGURE中添加一个 参数 rsa_private_path这样的;
因为paramiko.SSHClient() 是支持直接文件路径获取证书; 这样可以方便更多
from webhookit.
rsa_private_path='/root/.ssh/id_rsa'
key = paramiko.RSAKey.from_private_key_file(rsa_private_path)
from webhookit.
嗯,直接填写路径就可以了。
from webhookit.
Related Issues (11)
- 向脚本传递参数 HOT 12
- 配置文件中SCRIPT只能绝对地址不能相对地址 HOT 7
- 执行脚本,总是执行成功,即使我SCRIPT配置错误的路径 HOT 1
- 代码存在语法错误 HOT 2
- python3.6以上兼容问题
- 执行脚本使用pipline实时输出log HOT 1
- NameError: global name 'memoryview' is not defined HOT 2
- 请问怎么配置repo_name,命名空间写在哪? HOT 20
- webhookit页面打不开 HOT 5
- tag push时貌似有点儿问题 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from webhookit.