<?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/"
	>

<channel>
	<title>Death of a Gremmie &#187; cygwin</title>
	<atom:link href="http://deathofagremmie.com/tag/cygwin/feed/" rel="self" type="application/rss+xml" />
	<link>http://deathofagremmie.com</link>
	<description>by Brian Neal</description>
	<lastBuildDate>Wed, 14 Jul 2010 02:31:19 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Python and SSH</title>
		<link>http://deathofagremmie.com/2009/12/31/python-and-ssh/</link>
		<comments>http://deathofagremmie.com/2009/12/31/python-and-ssh/#comments</comments>
		<pubDate>Fri, 01 Jan 2010 04:26:15 +0000</pubDate>
		<dc:creator>gremmie</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[cygwin]]></category>
		<category><![CDATA[paramiko]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[sftp]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[webcam]]></category>

		<guid isPermaLink="false">http://deathofagremmie.com/?p=332</guid>
		<description><![CDATA[I was fooling around with my webcam, and I got to wondering if I could write a small Python script to upload a snapshot to my webserver periodically. Since I was planning on uploading a new snapshot every ten minutes or so, I&#8217;d rather use SFTP to avoid sending my login and password unencrypted so [...]]]></description>
			<content:encoded><![CDATA[<p>I was fooling around with my webcam, and I got to wondering if I could write a small Python script to upload a snapshot to my webserver periodically. Since I was planning on uploading a new snapshot every ten minutes or so, I&#8217;d rather use <a href="http://en.wikipedia.org/wiki/SSH_file_transfer_protocol">SFTP</a> to avoid sending my login and password unencrypted so frequently. I had already <a href="http://deathofagremmie.com/tag/ftplib/">used FTP in Python</a> before in a backup script, but I didn&#8217;t know if the Python standard library had a solution for SSH. After a bit of Googling, I discovered the 3<sup>rd</sup> party Python module <a href="http://www.lag.net/paramiko/">Paramiko</a> (the name is a combination of the Esperanto words for    &#8220;paranoid&#8221; and &#8220;friend&#8221; &#8212; I love that), which allows you to do all kinds of SSH2 operations, including SFTP. Paramiko is extremely <a href="http://www.lag.net/paramiko/docs/">well documented</a> (thank-you!) and I had no problems at all using it to accomplish my task. I also found this <a href="http://jessenoller.com/2009/02/05/ssh-programming-with-paramiko-completely-different/">great introductory article</a> by Python core developer <a href="http://jessenoller.com/">Jesse Noller</a> that was helpful in getting up to speed on it quickly.</p>
<p>Since I was using my webcam from Windows XP, I decided to write my script under the new 1.7.1 version of <a href="http://cygwin.com">Cygwin</a> that came out recently. You&#8217;ll need to get both the Paramiko package and the python-crypto package.</p>
<p>Happy New Year everyone!</p>
]]></content:encoded>
			<wfw:commentRss>http://deathofagremmie.com/2009/12/31/python-and-ssh/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
