擅长:python、mysql、java
<p>PuTTY是一个GUI应用程序。它不是为自动化而设计的</p>
<p>要实现自动化,请使用Plink、PuTTY命令行实用程序。它是一个控制台应用程序,因此它从标准输入读取命令</p>
<p>见:</p>
<ul>
<li><a href="https://the.earth.li/~sgtatham/putty/latest/htmldoc/Chapter7.html" rel="nofollow noreferrer">Using the command-line connection tool Plink</a></李>
<li><a href="https://stackoverflow.com/q/27592329/850848">Run Unix commands using PuTTY in C#</a></li>
</ul>