Consegui executar o Get-Service ssh-agent, mas quando executo o Start recebo o seguinte erro:
Start-Service : O serviço 'OpenSSH Authentication Agent (ssh-agent)' não pode ser iniciado devido ao seguinte erro: Não é possível iniciar o serviço ssh-agent no computador '.'.
No linha:1 caractere:1
+ Start-Service ssh-agent
+ ~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : OpenError: (System.ServiceProcess.ServiceController:ServiceController) [Start-Service], ServiceCommandException
+ FullyQualifiedErrorId : CouldNotStartService,Microsoft.PowerShell.Commands.StartServiceCommand
E uma outra dúvida esses comandos devem ser executados no PowerShell, certo?
Hi Lucas and welcome to the community!
These commands should be executed in PowerShell, if you plan to use the Windows version of OpenSSH.
Our documentation mentions that there are three ways to install OpenSSH (section "Install OpenSSH on Microsoft Windows"):
Can you please first confirm if you have followed the steps of the third one, "Install the Windows version of OpenSSH"?
If so, you are using the correct commands to check if the SSH agent is running and start the service.
One possible reason for this error is that the service's 'Startup Type' may be set to Disabled.
Can you open Services on your Windows machine, look for the service named OpenSSH Authentication Agent and check its Startup Type? If this is set to Disabled, can you change it to either Automatic or Manual, apply the change, and then try to run the command that starts the service from PowerShell again?
If you want the SSH service to start every time you start the Windows machine, you should set the Startup Type to Automatic. If you don't want that, and you want to start the service manually, you will need to set the Startup Type to Manual.
Please feel free to let me know how it goes and if you have any questions.
Kind regards,
Theodora
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.