【问题标题】:How to SSH into a Cisco ASA firewall with Windows Powershell?如何使用 Windows Powershell 通过 SSH 连接到 Cisco ASA 防火墙?
【发布时间】:2021-01-09 17:22:20
【问题描述】:

想使用 powershell 对 VPN 隧道进行一些监控,如果检测到中断,自动重置隧道。

Windows powershell SSH 能否进入 Cisco ASA 防火墙以发出防火墙命令?

【问题讨论】:

    标签: powershell cisco


    【解决方案1】:

    有一个SSH module。我使用它来更改 HP 服务器上的 ILO 密码的经验有限。不过,我相信它可以用于更精细的工作。

    您可以安装:

    Install-Module Posh-SSH 
    

    确保在提升的控制台中执行此操作。我还要指出还有其他 SSH 模块,我什至不能保证这么多,但您可能想使用它们。您可以通过以下方式找到它们:

    Find-Module *SSH*
    

    【讨论】:

      【解决方案2】:

      是的,从 Windows 10 v1809 开始,ssh 是 Windows 中的内置工具。您不必安装任何其他东西。只需发出:

      ssh -l <USERNAME> <DNS/IP>
      

      就像在 linux 上一样。

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2021-04-26
        • 2022-01-05
        • 2016-09-14
        • 2017-06-06
        • 1970-01-01
        • 1970-01-01
        • 2017-03-17
        • 1970-01-01
        相关资源
        最近更新 更多