bash:powershell:找不到命令

Pru*_*dru 6 ssh powershell window remote-access visual-studio-code

对于节点项目,我必须在远程服务器上工作,为此我将使用 filzilla 进行文件传输,使用 ssh 进行控制台。

我使用 Visual Studio Code,我安装了远程 ssh扩展,我进行了主机名和用户配置以及密钥,因为在此之前我遇到了另一个错误The process attempts to write to a nonexistent pipeline,我最终解决了这个问题,但现在我之后启动 ssh 并使用 Visual Studio Code 中的 cmd 中的密码登录,我收到此错误 bash: powershell: command not found

有一天我尝试在互联网上搜索该错误。

https://learn.microsoft.com/en-us/windows-server/administration/openssh/openssh_server_configuration?WT.mc_id=-blog-scottha

https://learn.microsoft.com/en-us/windows/wsl/troubleshooting

我已经和有更多经验的人交谈过,但在时间限制内我的建议可能是,但我仍然无法解决错误,要么是来自 windows 或 ssh 的问题,要么是我不知道。你是我第一次尝试这样做,一般来说,我使用了有一些设施的heroku或aws。

在此输入图像描述

小智 2

当您看到选择 Linux、Windows 或 Mac 的选项时,您是否确保您确切知道要连接的服务器类型。如果您选择了错误的选项,则会抛出此错误。