<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/xsl" href="../assets/xml/rss.xsl" media="all"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Tingo's notes (Posts about ssh-agent)</title><link>http://tingo.homedns.org/</link><description></description><atom:link href="http://tingo.homedns.org/categories/ssh-agent.xml" rel="self" type="application/rss+xml"></atom:link><language>en</language><copyright>Contents © 2024 Torfinn Ingolfsen 
&lt;a rel="license" href="https://creativecommons.org/licenses/by-nc-sa/4.0/"&gt;
&lt;img alt="Creative Commons License BY-NC-SA"
style="border-width:0; margin-bottom:12px;"
src="https://i.creativecommons.org/l/by-nc-sa/4.0/88x31.png"&gt;&lt;/a&gt;</copyright><lastBuildDate>Thu, 18 Jan 2024 20:25:11 GMT</lastBuildDate><generator>Nikola (getnikola.com)</generator><docs>http://blogs.law.harvard.edu/tech/rss</docs><item><title>Setting up ssh-agent from cmdline</title><link>http://tingo.homedns.org/posts/setting-up-ssh-agent-from-cmdline/</link><dc:creator>Torfinn Ingolfsen</dc:creator><description>&lt;p&gt;Sometimes I write content via a ssh connection, using vi as my editor. In order to deploy new content,
it is useful to have ssh-agent running. Ony way to do that is like this:&lt;/p&gt;
&lt;div class="code"&gt;&lt;pre class="code literal-block"&gt;&lt;span class="o"&gt;[&lt;/span&gt;nikola&lt;span class="o"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;tingo@kg-core2:~/personal/projects/nikola&lt;span class="w"&gt; &lt;/span&gt;%&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nb"&gt;eval&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="sb"&gt;`&lt;/span&gt;ssh-agent&lt;span class="w"&gt; &lt;/span&gt;-c&lt;span class="sb"&gt;`&lt;/span&gt;
Agent&lt;span class="w"&gt; &lt;/span&gt;pid&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="m"&gt;65221&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;This command sets the environment variables SSH_AUTH_SOCK and SSH_AGENT_PID, and you are ready to add keys with &lt;code&gt;ssh-add&lt;/code&gt;. When you are finished, you just use &lt;code&gt;ssh-agent -k&lt;/code&gt; to kill the agent.&lt;/p&gt;</description><category>csh</category><category>sh</category><category>ssh-agent</category><guid>http://tingo.homedns.org/posts/setting-up-ssh-agent-from-cmdline/</guid><pubDate>Mon, 09 Aug 2021 09:23:46 GMT</pubDate></item></channel></rss>