[英]posh-git - Start-SshAgent not recognized on new computer
I've set up a brand new computer with PowerShell 7 and posh-git.我已经用 PowerShell 7 和 posh-git 设置了一台全新的计算机。 When trying to run profile.ps1 on startup the
Start-SshAgent
command fails, resulting in cmdlet not recognized.尝试在启动时运行 profile.ps1 时,
Start-SshAgent
命令失败,导致无法识别 cmdlet。 Import-Module posh-git
works fine, I see the command line prompt changes. Import-Module posh-git
工作正常,我看到命令行提示发生了变化。 In fact, everything else in profile.ps1 from my old computer is working fine.事实上,我旧电脑中 profile.ps1 中的其他所有内容都运行良好。
I tried checking that my environment variables are set up.我尝试检查我的环境变量是否已设置。 I'm able to run
ssh-agent.exe
from the PowerShell prompt, so that doesn't seem to be the issue.我可以从 PowerShell 提示符运行
ssh-agent.exe
,所以这似乎不是问题。
SSH functions have been moved to a separate module: https://github.com/dahlbyk/posh-sshell . SSH 功能已移至单独的模块: https://github.com/dahlbyk/posh-sshell 。
(You might mean Start-SshAgent
rather than StartSsh-Agent
.) (您可能指的是
Start-SshAgent
而不是StartSsh-Agent
。)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.