Estou com um problema no Start-Service ssh-agent

Lucas Artoni Alves
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 4, 2024

 

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?

1 answer

0 votes
Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
October 7, 2024

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

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events