<?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:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Rough Book &#187; git</title>
	<atom:link href="http://vivin.net/tag/git/feed/" rel="self" type="application/rss+xml" />
	<link>http://vivin.net</link>
	<description>random musings of just another computer nerd</description>
	<lastBuildDate>Wed, 02 May 2012 18:20:05 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>GitHub broke my scp</title>
		<link>http://vivin.net/2010/03/09/github-broke-my-scp/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=rss</link>
		<comments>http://vivin.net/2010/03/09/github-broke-my-scp/#comments</comments>
		<pubDate>Tue, 09 Mar 2010 15:44:08 +0000</pubDate>
		<dc:creator>vivin</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[Networking]]></category>
		<category><![CDATA[Operating Systems]]></category>
		<category><![CDATA[freebsd]]></category>
		<category><![CDATA[git]]></category>
		<category><![CDATA[github]]></category>
		<category><![CDATA[networking]]></category>
		<category><![CDATA[openssh]]></category>
		<category><![CDATA[scp]]></category>
		<category><![CDATA[ssh]]></category>

		<guid isPermaLink="false">http://vivin.net/?p=1466</guid>
		<description><![CDATA[I set up git on my FreeBSD box so that I can commit my code to GitHub. Today I tried to scp some stuff over and I was met with this rather unhelpful message: vivin@serenity ~/Projects/code $ scp -r vivin@www.vivin.net:~/code/agnostic . Password: ps: Process environment requires procfs(5) Initializing new SSH agent... vivin@serenity ~/Projects/code $ I [...]]]></description>
			<content:encoded><![CDATA[<p>I set up <a href="http://en.wikipedia.org/wiki/Git_%28software%29">git</a> on my FreeBSD box so that I can commit my code to <a href="http://github.com/">GitHub</a>. Today I tried to scp some stuff over and I was met with this rather unhelpful message:</p>
<pre>
vivin@serenity ~/Projects/code
$ scp -r vivin@www.vivin.net:~/code/agnostic .
Password:
ps: Process environment requires procfs(5)
Initializing new SSH agent...

vivin@serenity ~/Projects/code
$
</pre>
<p>I fixed the procfs problem by adding the following to my <em>/etc/fstab</em>:</p>
<pre class="brush: php">
proc                    /proc           procfs  rw              0       0
linproc                 /compat/linux/proc      linprocfs       rw      0       0
</pre>
<p>and then running:</p>
<pre>
vivin@enterprise ~
$ sudo mount /compat/linux/proc

vivin@enterprise ~
$ sudo mount /proc
</pre>
<p>So I try to scp again and I get:</p>
<pre>
vivin@serenity ~/Projects/code
$ scp -r vivin@www.vivin.net:~/code/agnostic .
Password:
Initializing new SSH agent...

vivin@serenity ~/Projects/code
$
</pre>
<p>WTF? Then I remembered making some changes to my <em>.bashrc</em> to be able to commit to github:</p>
<pre class="brush: php">
function start_agent {
  echo &quot;Initializing new SSH agent...&quot;
  /usr/bin/ssh-agent | sed &#039;s/^echo/#echo/&#039; &gt; &quot;${SSH_ENV}&quot;
  echo succeeded
  chmod 600 &quot;${SSH_ENV}&quot;
  . &quot;${SSH_ENV}&quot; &gt; /dev/null
  /usr/bin/ssh-add;
}

# Source SSH settings, if applicable
if [ -f &quot;${SSH_ENV}&quot; ]; then
  . &quot;${SSH_ENV}&quot; &gt; /dev/null
  #ps ${SSH_AGENT_PID} doesn&#039;t work under cywgin
  ps -ef | grep ${SSH_AGENT_PID} | grep ssh-agent$ &gt; /dev/null || {
    start_agent;
  }
else
  start_agent;
fi
</pre>
<p>I pulled all that out of my <em>.bashrc</em> and made a separate shell script for it. After I did that, scp started working again. I had no idea that calling scp would actually run <em>.bashrc</em></p>
<br /><a href="http://vivin.net/?p=1466#comments" title="Comments on &quot;GitHub broke my scp&quot;"><img src="http://vivin.net/wp-content/plugins/feed-comments-number/image.php?1466" alt="Comments" /></a><img src="http://vivin.net/?ak_action=api_record_view&#38;id=1466&#38;type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://vivin.net/2010/03/09/github-broke-my-scp/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:thumbnail url="http://vivin.net/wp-content/plugins/feed-comments-number/image.php?1466" />
		<media:content url="http://vivin.net/wp-content/plugins/feed-comments-number/image.php?1466" medium="image">
			<media:title type="html">Comments</media:title>
		</media:content>
		<media:content url="http://vivin.net/?ak_action=api_record_view&#38;id=1466&#38;type=feed" medium="image" />
	</item>
	</channel>
</rss>

