windows - 通过windows CMD执行perl脚本时出现SSHAuthenticationError

标签 windows perl cmd cygwin

我正在尝试执行一个使用“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 FAQ

Expect itself doesn't have real system dependencies, but the underlying IO::Tty needs pseudoterminals. ...

See IO::Tty for a list of verified systems.

IO::Tty

Windows is now supported, but ONLY under the Cygwin environment, ...

关于windows - 通过windows CMD执行perl脚本时出现SSHAuthenticationError,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54571969/

相关文章:

windows - 我如何在没有操作系统中介的情况下访问我的系统资源?

c++ - Windows 上无符号 __int64 的 printf 格式

perl - XML::LibXML 是否可以解析古怪的标签?

windows - findstr命令变量在for循环批处理脚本中的路径中扩展(Windows,批处理脚本)

extjs - Sencha cmd 4 添加css和js

c - 如何为 C 游戏创建界面

javascript - 页面上出现黑钻问号

arrays - Perl一个数组的所有排列

perl - 我在 Postgresql 中的 utf-8 字符串发生了什么变化?

windows - 作为 CMD 变量的特定以太网的 IP 地址