Shawn's blog Shawn's blog
About Me
  • Category
  • Tag
  • Archive
GitHub (opens new window)

Shawn Jin

I am not a creator of knowledge, I am just a porter of knowledge.
About Me
  • Category
  • Tag
  • Archive
GitHub (opens new window)
  • Resolve ssh-add failed

    • Problem
      • Resolution
      Shawn Jin
      2019-12-31
      notes

      Resolve ssh-add failed

      # ssh-add failed

      # Problem

      If you got error message Could not open a connection to your authentication agent. when you are using command ssh-add. The reason is SSH private-keys are usually stored encrypted on the computers they are stored on. A pass-phrase is used to decrypt them when they are to be used. Since most people use SSH public-private key-pairs to get around typing in passwords all the time, the ssh-agentdaemon exists to store decrypted private-keys you plan on using in a given session. The thing most people get tripped up on when using ssh-agent is that what the program outputs, some borne or csh shell commands, needs to be run. It may look like ssh-agent has set some variables for you, but it has in fact done no such thing. If you call ssh-add without processing ssh-agent’s output, it will complain it is unable to open a connection to your authentication agent.

      # Resolution

      The most straightforward way to run ssh-agent on the command line is as follows:

      eval ssh-agent
      
      1

      After doing this, calls to ssh-add should succeed without error.

      #bug-fix#SSH
      Updated: 2021/09/09, 11:40:27
      最近更新
      01
      Python import files from different directories
      12-31
      02
      Classmethod in Python
      09-15
      03
      Single/Double Star (/*) Parameters in Python
      09-15
      更多文章>
      Theme by Vdoing | Copyright © 2019-2021 Shawn Jin | MIT License
      • 跟随系统
      • 浅色模式
      • 深色模式
      • 阅读模式