<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	
	xmlns:georss="http://www.georss.org/georss"
	xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#"
	>

<channel>
	<title>ssh &#8211; luke arms</title>
	<atom:link href="https://tech.lkrms.org/tag/ssh/feed/" rel="self" type="application/rss+xml" />
	<link>https://tech.lkrms.org</link>
	<description>just a nerd with &#34;mild OCD tendencies&#34;</description>
	<lastBuildDate>Mon, 22 May 2017 00:20:29 +0000</lastBuildDate>
	<language>en-AU</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.6.12</generator>

<image>
	<url>https://tech.lkrms.org/wp-content/uploads/2016/06/cropped-Logo-Letters-WB-Circle-2-32x32.png</url>
	<title>ssh &#8211; luke arms</title>
	<link>https://tech.lkrms.org</link>
	<width>32</width>
	<height>32</height>
</image> 
<site xmlns="com-wordpress:feed-additions:1">152348619</site>	<item>
		<title>Using your keychain with ssh-add on macOS Sierra</title>
		<link>https://tech.lkrms.org/using-your-keychain-with-ssh-add-on-macos-sierra/</link>
		
		<dc:creator><![CDATA[Luke]]></dc:creator>
		<pubDate>Tue, 21 Feb 2017 04:24:19 +0000</pubDate>
				<category><![CDATA[Tech]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[ssh]]></category>
		<guid isPermaLink="false">https://lkrms.org/?p=1296</guid>

					<description><![CDATA[<p>If you're wondering why SSH on macOS Sierra is constantly demanding your private key passphrases, here's the remedy.</p>
<p>The post <a rel="nofollow" href="https://tech.lkrms.org/using-your-keychain-with-ssh-add-on-macos-sierra/">Using your keychain with ssh-add on macOS Sierra</a> appeared first on <a rel="nofollow" href="https://tech.lkrms.org">luke arms</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>You might have noticed that macOS Sierra doesn&#8217;t offer to store private key passphrases for SSH in your user keychain anymore. It doesn&#8217;t automatically add SSH identities from your keychain, either.</p>
<p>Result: <em>you need to enter the passphrase for each of your SSH keys at least once per session, where previously you could enter it once and never type it again.</em></p>
<p>Given the security implications of making it too easy to open an SSH session without authenticating yourself, I can&#8217;t fault Apple for this. But if you&#8217;re a heavy SSH user, you might agree that it&#8217;s more painful to work with now.</p>
<p>Thankfully, there is a workaround. I&#8217;ve just added this to my <code>~/.profile</code> file:</p>
<pre class="brush: bash; title: ; notranslate">
if [ &quot;$USER&quot; != &quot;root&quot; ]; then

    if ! ssh-add -l | grep -q 'id_rsa.lkrms'; then

        ssh-add -A

        if ! ssh-add -l | grep -q 'id_rsa.lkrms'; then

            ssh-add -K &quot;$HOME/.ssh/Keys/id_rsa.lkrms&quot;

        fi

    fi

fi
</pre>
<p>Now, every time I open a terminal, <code>ssh-add -l</code> is grepped for <code>id_rsa.lkrms</code>. If it&#8217;s missing, <code>ssh-add -A</code> is called to add SSH identities from my keychain. If <code>id_rsa.lkrms</code> still hasn&#8217;t appeared, I will be prompted for my passphrase, and it will be stored in my keychain for future use.</p>
<p>The post <a rel="nofollow" href="https://tech.lkrms.org/using-your-keychain-with-ssh-add-on-macos-sierra/">Using your keychain with ssh-add on macOS Sierra</a> appeared first on <a rel="nofollow" href="https://tech.lkrms.org">luke arms</a>.</p>
]]></content:encoded>
					
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">1296</post-id>	</item>
	</channel>
</rss>
