如何让ssh从stdin接收密码 [英] How to make ssh receive the password from stdin

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

问题描述

如何让 SSH 从标准输入中读取密码,默认情况下它不这样做?

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天全站免登陆