<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Ssh-Agent on Apuntes de root</title>
    <link>https://blog.099c.org/tags/ssh-agent/</link>
    <description>Recent content in Ssh-Agent on Apuntes de root</description>
    <generator>Hugo</generator>
    <language>en-US</language>
    <managingEditor>jorti@pm.me (Juan Orti Alcaine)</managingEditor>
    <webMaster>jorti@pm.me (Juan Orti Alcaine)</webMaster>
    <lastBuildDate>Tue, 28 Oct 2014 00:00:00 +0000</lastBuildDate>
    <atom:link href="https://blog.099c.org/tags/ssh-agent/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Configure a single ssh-agent and gpg-agent and use them everywhere</title>
      <link>https://blog.099c.org/posts/configure-a-single-ssh-agent-and-gpg-agent-and-use-them-everywhere/</link>
      <pubDate>Tue, 28 Oct 2014 00:00:00 +0000</pubDate><author>jorti@pm.me (Juan Orti Alcaine)</author>
      <guid>https://blog.099c.org/posts/configure-a-single-ssh-agent-and-gpg-agent-and-use-them-everywhere/</guid>
      <description>&lt;p&gt;Using this recipe you&amp;rsquo;ll get a single ssh-agent and a single gpg-agent running for your user and the correct environmental variables will be set everywhere. Just add this code to your &lt;code&gt;~/.bashrc&lt;/code&gt;: [code lang=&amp;ldquo;bash&amp;rdquo;]# GPG Agent if [ -x $(which gpg-agent) ] &amp;amp;&amp;amp; [ -d &amp;ldquo;${HOME}/.gnupg&amp;rdquo; ]; then oldumask=$(umask) umask 0077 pgrep -U $LOGNAME gpg-agent &amp;gt;/dev/null 2&amp;gt;&amp;amp;1 || gpg-agent &amp;ndash;daemon &amp;ndash;write-env-file &amp;ldquo;${HOME}/.gnupg/gpg-agent-info&amp;rdquo; &amp;gt;/dev/null 2&amp;gt;&amp;amp;1 umask $oldumask GPG_TTY=$(tty) export GPG_TTY if [ -r &amp;ldquo;${HOME}/.gnupg/gpg-agent-info&amp;rdquo; ]; then . &amp;ldquo;${HOME}/.gnupg/gpg-agent-info&amp;rdquo; export GPG_AGENT_INFO fi fi&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
