zoukankan      html  css  js  c++  java
  • IDEA配置Gerrit的SSH密钥报错

    1、执行ssh-add报错

    D:programworkspace-dyyapiServer>ssh-add ./id_ras_gerrit
    Error connecting to agent: No such file or directory
    

    2、在工程目录执行get-service ssh*,无此命令

    D:programworkspace-dyyapiServer>get-service ssh*
    'get-service' 不是内部或外部命令,也不是可运行的程序
    或批处理文件。

    解决方案:用powerShell执行
    PS C:Usersxxx> get-service ssh*
    Status   Name               DisplayName
    ------   ----               -----------
    Stopped  ssh-agent          OpenSSH Authentication Agent

    3、在PowerShell执行命令Set-Service -Name ssh-agent -StartupType Manual报错

    PS C:Users刘应平> Set-Service -Name ssh-agent -StartupType Manual
    Set-Service : 由于以下错误无法配置服务“OpenSSH Authentication Agent (ssh-agent)”: 拒绝访问。
    所在位置 行:1 字符: 1
    + Set-Service -Name ssh-agent -StartupType Manual
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : PermissionDenied: (System.ServiceProcess.ServiceController:ServiceController) [Set-Servi
       ce], ServiceCommandException
        + FullyQualifiedErrorId : CouldNotSetService,Microsoft.PowerShell.Commands.SetServiceCommand

     解决方案:
    到window服务中去找到OpenSSH Authentication Agent,并启动它

    4、问题解决,可以继续执行操作了。




    ----------------------------------------------------------------------------
    我的小鱼你醒了,
    还认识早晨吗?
    昨夜你曾经说,
    愿夜幕永不开启。
    你的香腮边轻轻滑落的,
    是你的泪,还是我的泪?
    初吻吻别的那个季节,
    不是已经哭过了吗?
    我的指尖还记忆着,
    你慌乱的心跳。
    温柔的体香里,
    那一缕长发飘飘。
  • 相关阅读:
    平凡的世界
    MySql启动,提示:Plugin 'FEDERATED' is disabled....Cannot allocate memory for the buffer pool
    MySql开启慢查询报错:Could not open /var/log/slow_query.log for logging (error 13).
    ie浏览器,背景色兼容解决方法
    基于Bootstrap、Jquery的自适应导航栏
    chmod、chown、chgrp的意思
    Can't connect to MySQL server on localhost (0)
    mysql-bin引起mysql不能启动
    文件类型检测
    从数据库中查询规则
  • 原文地址:https://www.cnblogs.com/liuyp-ken/p/14627110.html
Copyright © 2011-2022 走看看