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

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

问题描述

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

解决方案

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