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

How to make ssh receive the password from stdin

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

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

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

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.