简体   繁体   English

如何使用没有密码的pywinrm登录Windows,如果我可以使用pywinrm中的私钥登录计算机

[英]how to login windows using pywinrm whithout password, If I can login the machine using my private key in pywinrm

Is there any way to log in Windows using pywinrm without password? 有没有办法使用pywinrm登录Windows而无需密码? If I can login the machine using my private key in pywinrm instead of password. 如果我可以使用pywinrm中的私钥而不是密码登录计算机。

I want to log in a Windows server form Linux, and I use pywinrm in python to do the work, but I need to provide the password, is there any way to log in without password? 我想从Linux登录Windows服务器,并且在python中使用pywinrm来完成工作,但是我需要提供密码,有没有没有密码的登录方法吗?

s = winrm.Session(hostIP,auth=(user,passWord), transport='ntlm')

I want to find a way without password, such as use the private key store in my local Linux machine. 我想找到一种没有密码的方法,例如在本地Linux机器中使用私钥存储。 Is this possible? 这可能吗?

No there is for this way. 没有这种方式。 If you use Session you have to authorized . 如果使用会话,则必须授权。 If it possible , telling the way of this is not ethichal movement for this web site. 如果可能的话,告诉此方法不是该网站的道德运动。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM