Warm tip: This article is reproduced from serverfault.com, please click

其他-如何使ssh接收来自stdin的密码

(其他 - How to make ssh receive the password from stdin)

发布于 2009-08-27 11:07:47

如何使SSH从stdin读取密码,默认情况下不这样做?

Questioner
olamundo
Viewed
0
pvoosten 2009-08-27 19:14:52

你不能使用大多数SSH客户端。你可以使用SSH API(例如Python的Paramiko)来解决此问题。注意不要推翻所有安全策略。