我正在尝试执行一个使用“Net::SSH::Expect”模块的 perl 脚本。
我面临的问题是,当我通过 Cygwin 执行脚本时,它的工作方式就像一个魅力..但是当在 Windows CMD 上执行相同的脚本时,它会失败并给出以下错误 ->
SSHAuthenticationError Login timed out. The input stream currently has the contents bellow: Pseudo-terminal will not be allocated because stdin is not a terminal.
at /usr/local/share/perl5/site_perl/5.26/Expect.pm line 904.
你能建议我错过了什么吗?
最佳答案
... Pseudo-terminal will not be allocated because stdin is not a terminal. ... Expect.pm
我想这个错误消息的答案可以从文档中找到:
Expect itself doesn't have real system dependencies, but the underlying
IO::Tty
needs pseudoterminals. ...See
IO::Tty
for a list of verified systems.
Windows is now supported, but ONLY under the Cygwin environment, ...
关于windows - 通过windows CMD执行perl脚本时出现SSHAuthenticationError,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54571969/