[英]Increase timeout for Invoke-SshCommand
Powershell Errors: "Session operation has timed out" At C:\SpDrive\Moodle\Provision-MoodleLMS.ps1:108 char:2
+ Invoke-SSHCommand -ComputerName $serName -Command "$temp" -q
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Invoke-SSHCommand], MethodInvocationException
+ FullyQualifiedErrorId : SshOperationTimeoutException,Invoke-SSHCommand
Is there any way to increase the session timeout for Invoke-SSHCommand
? 有什么办法可以增加Invoke-SSHCommand
的会话超时时间吗?
According to this GitHub issue , the developer has added a -Timeout
parameter to address this in version 1.7. 根据此GitHub问题 ,开发人员已添加-Timeout
参数以在1.7版中解决此问题。
Unfortunately, I cannot find this in the release notes, and all I manage to install on my own computer is version 1.6, which does not have that parameter :-/. 不幸的是,我在发行说明中找不到此文件,并且我设法在自己的计算机上安装的是1.6版,它没有该参数:-/。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.