ssh - ssh:术语“ssh”未被识别为 cmdlet、函数、脚本文件或可运行程序的名称
问题描述
我尝试使用 ssh 连接到服务器,但出现以下错误 ssh:
The term 'ssh' is not recognized as the name of a cmdlet, function, script file, or operable program.
并设法安装 OpenSSH.client 和服务器,但在尝试运行 ssh 时出现同样的错误。
我在 Windows 10 专业版上运行。我尝试卸载 OpenSSH 并重新安装,重新启动计算机,但没有任何改变。
编辑: 以一种奇怪的方式,ssh 第二天就开始工作了。我想解决方案是在卸载并重新安装 ssh 后重新启动计算机。
解决方案
首先在新的 Powershell Windows中尝试相同的命令,该命令将继承您刚刚通过安装OpenSSH for Windows所做的系统更改
确保您确实看到了C:\Windows\System32\openssh\ssh.exe
.
如“ Windows 10 的 OpenSSH 服务器配置”中所述
首先确认OpenSSH安装文件夹在系统路径上。
对于 Windows,默认安装文件夹是
SystemDrive:WindowsDirectory\System32\openssh
.
推荐阅读
- c# - 在 Linq 中使用 TempData
- sql-server - 显示每个月并计数,如果为 Null,则为 0
- r - 拆分/传播一个 DF 列,其中每个观察值的不同值
- java - DataTables 警告:表 id=example - Ajax 错误
- .net-core - 为非基于 HTTP 的中间件管道实现 IAppBuilder
- sql - NOT IN 嵌套 SELECT 不起作用 - 没有返回结果 - Postgres
- html - css 和 html。如何在一行中显示两个div
- facebook - 使用 iframe 的自定义选项卡应审查哪些权限?
- java - dataprovider excel文件读取如何跳过第一行
- excel - 如何在公式中逐步增加单元格引用?