<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Ssh on Björn Schießle - I came for the code but stayed for the freedom</title>
    <link>https://schiessle.eu/en/tags/ssh/</link>
    <description>Recent content in Ssh on Björn Schießle - I came for the code but stayed for the freedom</description>
    <generator>Hugo -- gohugo.io</generator>
    
    
    
    <language>en-US</language>
    
    
    
    <managingEditor>bjoern@schiessle.org (Björn Schießle)</managingEditor>
    <webMaster>bjoern@schiessle.org (Björn Schießle)</webMaster>
    <copyright>Creative Commons Attribution-ShareAlike 4.0 International License.</copyright>
    <lastBuildDate>Tue, 12 May 2009 16:28:37 +0000</lastBuildDate>
    <atom:link href="https://schiessle.eu/en/tags/ssh/" rel="self" type="application/rss+xml" />
    
    <item>
      
      
      
	<category>English</category>
        
      
      
      	
      <title>Fedora and gpg-agent</title>
      <link>https://schiessle.eu/en/articles/2009/05/12/fedora-and-gpg-agent/</link>
      <pubDate>Tue, 12 May 2009 16:28:37 +0000</pubDate>
      <author>Björn Schießle (bjoern@schiessle.org)</author>
      <guid>https://schiessle.eu/en/articles/2009/05/12/fedora-and-gpg-agent/</guid>
      
      
      
      <category>bash</category>
      
      <category>fedora</category>
      
      <category>gnupg</category>
      
      <category>smartcard</category>
      
      <category>ssh</category>
      
      
      
      <description>&lt;p&gt;While it was quite easy to set up my &lt;a href=&#34;http://fellowship.fsfe.org&#34;&gt;Fellowship&lt;/a&gt; smartcard for SSH logins on Debian GNU/Linux following this &lt;a href=&#34;http://blogs.fsfe.org/greve/?p=64&#34;&gt;instructions&lt;/a&gt; I never managed to get it working on Fedora GNU/Linux. At some point of time I just gave up. Today finally I found a solution in an on-line forum.&lt;/p&gt;
&lt;p&gt;The problem was that gpg-agent always stopped with the error message:&lt;/p&gt;
&lt;pre&gt;$ gpg-agent 
gpg-agent[2857]: can&#39;t connect to `/home/schiesbn/.gnupg/S.gpg-agent&#39;: No such file or directory
gpg-agent: no gpg-agent running in this session
&lt;/pre&gt;
&lt;p&gt;By default the gpg-agent on Fedora creates the socket in /tmp instead of in /home/schiesbn/.gnupg. So you have to move it manually over to your home directory once gpg-agent has started.&lt;/p&gt;
&lt;p&gt;To do this I use this script:&lt;/p&gt;
&lt;pre lang=&#34;bash&#34; line=&#34;0&#34;&gt;#!/bin/bash

# Decide whether to start gpg-agent daemon.
# Create necessary symbolic link in $HOME/.gnupg/S.gpg-agent

SOCKET=S.gpg-agent
PIDOF=`pidof gpg-agent`
RETVAL=$?

if [ &#34;$RETVAL&#34; -eq 1 ]; then
	echo &#34;Starting gpg-agent daemon.&#34;
	eval `gpg-agent --daemon `
else
	echo &#34;Daemon gpg-agent already running.&#34;
fi

# Nasty way to find gpg-agent&#39;s socket file...
GPG_SOCKET_FILE=`find /tmp/gpg-* -name $SOCKET`
echo &#34;Updating socket file link.&#34;
cp -fs $GPG_SOCKET_FILE $HOME/.gnupg/S.gpg-agent
&lt;/pre&gt;
&lt;p&gt;To execute this script during log-in I have added this to my ~/.bashrc:&lt;/p&gt;
&lt;pre lang=&#34;bash&#34; line=&#34;0&#34;&gt;# GPG-AGENT stuff
GET_TTY=`tty`
export $GET_TTY
$HOME/bin/gpg-agent-start.sh
&lt;/pre&gt;
&lt;p&gt;I still wonder why it works that easy on Debian and on Fedora i need all this scripting. But for the moment I’m just happy that I have found a solution to use my smartcard for SSH login on my Fedora systems.&lt;/p&gt;
</description>
    </item>
    
  </channel>
</rss>
