如何使ssh接收来自stdin的密码 [英] How to make ssh receive the password from stdin

查看:168
本文介绍了如何使ssh接收来自stdin的密码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使SSH从stdin中读取密码,默认情况下它不启用?

How can you make SSH read the password from stdin, which it doesn't do by default?

推荐答案

您不能使用大多数SSH客户端.您可以使用SSH API解决该问题,例如用于Python的 Paramiko .注意不要推翻所有安全策略.

You can't with most SSH clients. You can work around it with by using SSH API's, like Paramiko for Python. Be careful not to overrule all security policies.

这篇关于如何使ssh接收来自stdin的密码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆