【问题标题】:remote connection using powershell from linux to windows使用powershell从linux到windows的远程连接
【发布时间】:2021-05-03 09:40:10
【问题描述】:

我可以使用由 New-PSSession 命令创建的 Powershell 会话从我的 Windows 本地计算机连接到远程 Windows 计算机。

New-PSSession -ComputerName $computerName -Credential $cred

现在,我需要从本地 LINUX 机器创建到远程 Windows 机器的类似远程会话。所以,我在我的 red hat 7 linux 机器上安装了 powershell 6.0.2。尝试使用 New-PSSession 命令创建远程会话时,出现以下错误:

New-PSSession : MI_Result_Access_Denied

我只需要使用基于 WinRM 的方法而不是基于 SSH 的方法,因为我无法在远程 Windows 机器上安装任何额外的实用程序。

【问题讨论】:

标签: powershell rhel7 powershell-6.0


【解决方案1】:

kerberos 身份验证在其原版风格中不受跨域支持。 Linux 不支持基于 HTTP 的基本身份验证。在 Windows 上安装 OpenSSH 似乎是唯一的方法。

【讨论】:

    猜你喜欢
    • 2017-09-30
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-03-13
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-06-21
    相关资源
    最近更新 更多