<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: SSH Programming with Paramiko &#124; Completely Different</title>
	<atom:link href="http://jessenoller.com/2009/02/05/ssh-programming-with-paramiko-completely-different/feed/" rel="self" type="application/rss+xml" />
	<link>http://jessenoller.com/2009/02/05/ssh-programming-with-paramiko-completely-different/</link>
	<description>python, programming and other things</description>
	<lastBuildDate>Thu, 11 Feb 2010 00:42:02 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: jnoller</title>
		<link>http://jessenoller.com/2009/02/05/ssh-programming-with-paramiko-completely-different/comment-page-1/#comment-139145</link>
		<dc:creator>jnoller</dc:creator>
		<pubDate>Fri, 13 Nov 2009 16:18:05 +0000</pubDate>
		<guid isPermaLink="false">http://jessenoller.com/?p=465#comment-139145</guid>
		<description>You should email the paramiko mailing list for support</description>
		<content:encoded><![CDATA[<p>You should email the paramiko mailing list for support</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: hima</title>
		<link>http://jessenoller.com/2009/02/05/ssh-programming-with-paramiko-completely-different/comment-page-1/#comment-139144</link>
		<dc:creator>hima</dc:creator>
		<pubDate>Fri, 13 Nov 2009 15:08:51 +0000</pubDate>
		<guid isPermaLink="false">http://jessenoller.com/?p=465#comment-139144</guid>
		<description>sudo over paramiko doesn&#039;t work.  It gives exception that &quot; U require a tty to run sudo&quot;.&lt;br&gt;My server is having requiretty = true . Due to security problem, this setting cant be changed. I will have to handle it through paramiko.&lt;br&gt;Pls Help........</description>
		<content:encoded><![CDATA[<p>sudo over paramiko doesn&#39;t work.  It gives exception that &#8221; U require a tty to run sudo&#8221;.<br />My server is having requiretty = true . Due to security problem, this setting cant be changed. I will have to handle it through paramiko.<br />Pls Help&#8230;&#8230;..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jnoller</title>
		<link>http://jessenoller.com/2009/02/05/ssh-programming-with-paramiko-completely-different/comment-page-1/#comment-125351</link>
		<dc:creator>jnoller</dc:creator>
		<pubDate>Fri, 13 Nov 2009 10:18:05 +0000</pubDate>
		<guid isPermaLink="false">http://jessenoller.com/?p=465#comment-125351</guid>
		<description>You should email the paramiko mailing list for support</description>
		<content:encoded><![CDATA[<p>You should email the paramiko mailing list for support</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: hima</title>
		<link>http://jessenoller.com/2009/02/05/ssh-programming-with-paramiko-completely-different/comment-page-1/#comment-125350</link>
		<dc:creator>hima</dc:creator>
		<pubDate>Fri, 13 Nov 2009 09:08:51 +0000</pubDate>
		<guid isPermaLink="false">http://jessenoller.com/?p=465#comment-125350</guid>
		<description>sudo over paramiko doesn&#039;t work.  It gives exception that &quot; U require a tty to run sudo&quot;.&lt;br&gt;My server is having requiretty = true . Due to security problem, this setting cant be changed. I will have to handle it through paramiko.&lt;br&gt;Pls Help........</description>
		<content:encoded><![CDATA[<p>sudo over paramiko doesn&#39;t work.  It gives exception that &#8221; U require a tty to run sudo&#8221;.<br />My server is having requiretty = true . Due to security problem, this setting cant be changed. I will have to handle it through paramiko.<br />Pls Help&#8230;&#8230;..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jnoller</title>
		<link>http://jessenoller.com/2009/02/05/ssh-programming-with-paramiko-completely-different/comment-page-1/#comment-123476</link>
		<dc:creator>jnoller</dc:creator>
		<pubDate>Fri, 30 Oct 2009 21:48:55 +0000</pubDate>
		<guid isPermaLink="false">http://jessenoller.com/?p=465#comment-123476</guid>
		<description>Given the article was about SSH programming, and paramiko is for SSH&lt;br&gt;programming - I think it&#039;s a much better fundamental solution to SSH&lt;br&gt;programming than pexpect. I&#039;ve had plenty of expect-like scripts, and&lt;br&gt;expect-base script break because assumption on output, regexes, etc&lt;br&gt;broke. I agree that paramiko isn&#039;t a generalized tool, but for the&lt;br&gt;problem it tries to solve it is the best tool (in my opinion).&lt;br&gt;&lt;br&gt;If we were talking a general &quot;watch something and react&quot; tool, then&lt;br&gt;yeah - pexpect makes sense, but we&#039;re not.</description>
		<content:encoded><![CDATA[<p>Given the article was about SSH programming, and paramiko is for SSH<br />programming &#8211; I think it&#39;s a much better fundamental solution to SSH<br />programming than pexpect. I&#39;ve had plenty of expect-like scripts, and<br />expect-base script break because assumption on output, regexes, etc<br />broke. I agree that paramiko isn&#39;t a generalized tool, but for the<br />problem it tries to solve it is the best tool (in my opinion).</p>
<p>If we were talking a general &#8220;watch something and react&#8221; tool, then<br />yeah &#8211; pexpect makes sense, but we&#39;re not.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike</title>
		<link>http://jessenoller.com/2009/02/05/ssh-programming-with-paramiko-completely-different/comment-page-1/#comment-123471</link>
		<dc:creator>Mike</dc:creator>
		<pubDate>Fri, 30 Oct 2009 21:35:54 +0000</pubDate>
		<guid isPermaLink="false">http://jessenoller.com/?p=465#comment-123471</guid>
		<description>Actually something expect-like doesn&#039;t care what the output is if you code the same way you do with paramiko.  pexpect.expect takes a list of args... that list can be regular expressions or perhaps pexpect.TIMEOUT or pexpect.EOF.  Based on that which one in that list matches, you make a decision; this is not an issue of a small decision tree.  I&#039;m ok with people using other tools, but lets be fair to the tools available.  pexpect is a much more generalized solution than paramiko; paramiko gives you more granular visibility into stderr than pexpect does, but paramiko is limited to ssh.</description>
		<content:encoded><![CDATA[<p>Actually something expect-like doesn&#39;t care what the output is if you code the same way you do with paramiko.  pexpect.expect takes a list of args&#8230; that list can be regular expressions or perhaps pexpect.TIMEOUT or pexpect.EOF.  Based on that which one in that list matches, you make a decision; this is not an issue of a small decision tree.  I&#39;m ok with people using other tools, but lets be fair to the tools available.  pexpect is a much more generalized solution than paramiko; paramiko gives you more granular visibility into stderr than pexpect does, but paramiko is limited to ssh.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jnoller</title>
		<link>http://jessenoller.com/2009/02/05/ssh-programming-with-paramiko-completely-different/comment-page-1/#comment-123445</link>
		<dc:creator>jnoller</dc:creator>
		<pubDate>Fri, 30 Oct 2009 18:36:31 +0000</pubDate>
		<guid isPermaLink="false">http://jessenoller.com/?p=465#comment-123445</guid>
		<description>Personally, I&#039;ve found any tool which waits for specific output from&lt;br&gt;commands to be terribly brittle. Output from remote sources can (and&lt;br&gt;does) frequently change - sure, something expect-like does the job if&lt;br&gt;you can count on the same output over and over again.&lt;br&gt;&lt;br&gt;I know pexpect has gotten better since the time I used it, which&lt;br&gt;admittedly was awhile ago and at this point I go out of my way to&lt;br&gt;avoid it/expect-like tools unless I simply can&#039;t. I&#039;m also much more a&lt;br&gt;fan of tackling things with tools like paramiko, which is more&lt;br&gt;programmatic/reliable in my mind.</description>
		<content:encoded><![CDATA[<p>Personally, I&#39;ve found any tool which waits for specific output from<br />commands to be terribly brittle. Output from remote sources can (and<br />does) frequently change &#8211; sure, something expect-like does the job if<br />you can count on the same output over and over again.</p>
<p>I know pexpect has gotten better since the time I used it, which<br />admittedly was awhile ago and at this point I go out of my way to<br />avoid it/expect-like tools unless I simply can&#39;t. I&#39;m also much more a<br />fan of tackling things with tools like paramiko, which is more<br />programmatic/reliable in my mind.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike</title>
		<link>http://jessenoller.com/2009/02/05/ssh-programming-with-paramiko-completely-different/comment-page-1/#comment-123195</link>
		<dc:creator>Mike</dc:creator>
		<pubDate>Tue, 27 Oct 2009 15:47:05 +0000</pubDate>
		<guid isPermaLink="false">http://jessenoller.com/?p=465#comment-123195</guid>
		<description>I&#039;m curious about something mentioned above... you seem to discourage use of pexpect for driving ssh sessions, but you launched into issues with &#039;subprocess&#039; without specific comments about why pexpect isn&#039;t a winner for you.  Have you had bad experiences with pexpect, and if so please elaborate...&lt;br&gt;&lt;br&gt;Having used pexpect to drive cisco routers for the last 3 years, I have to say it&#039;s been nothing but pleasant to me.&lt;br&gt;&lt;br&gt;Thoughts?&lt;br&gt;m</description>
		<content:encoded><![CDATA[<p>I&#39;m curious about something mentioned above&#8230; you seem to discourage use of pexpect for driving ssh sessions, but you launched into issues with &#39;subprocess&#39; without specific comments about why pexpect isn&#39;t a winner for you.  Have you had bad experiences with pexpect, and if so please elaborate&#8230;</p>
<p>Having used pexpect to drive cisco routers for the last 3 years, I have to say it&#39;s been nothing but pleasant to me.</p>
<p>Thoughts?<br />m</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: xav.vijay</title>
		<link>http://jessenoller.com/2009/02/05/ssh-programming-with-paramiko-completely-different/comment-page-1/#comment-123069</link>
		<dc:creator>xav.vijay</dc:creator>
		<pubDate>Thu, 24 Sep 2009 01:18:33 +0000</pubDate>
		<guid isPermaLink="false">http://jessenoller.com/?p=465#comment-123069</guid>
		<description>Hi&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;I followed ur example for paramiko and my code is like this..&lt;br&gt;&lt;br&gt;import paramiko&lt;br&gt;import os&lt;br&gt;&lt;br&gt;ssh = paramiko.SSHClient()&lt;br&gt;ssh.load_system_host_keys()&lt;br&gt;ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy())&lt;br&gt;ssh.connect(&#039;server-name&#039;,22,&#039;root&#039;,&#039;password&#039;)&lt;br&gt;stdin, stdout, stderr = ssh.exec_command(&quot;ssh -V&quot;)&lt;br&gt;stdout.readlines()&lt;br&gt;&lt;br&gt;But, I am getting the following error!! ... I am not sure why...Can u please help!!&lt;br&gt;Traceback (most recent call last):&lt;br&gt;  File &quot;C:Documents and Settingsaannas01My DocumentsDownloadsssh-ver.py&quot;, line 18, in &lt;br&gt;in &lt;module&gt;&lt;br&gt;    ssh.connect(&#039;server-name&#039;,22,&#039;root&#039;,&#039;password&#039;)&lt;br&gt;  File &quot;C:Python26libsite-packagesparamikoclient.py&quot;, line 309, in connect&lt;br&gt;    self._auth(username, password, pkey, key_filename, allow_agent, look_for_keys)&lt;br&gt;  File &quot;C:Python26libsite-packagesparamikoclient.py&quot;, line 463, in _auth&lt;br&gt;    raise saved_exception&lt;br&gt;BadAuthenticationType: Bad authentication type (allowed_types=[&#039;publickey&#039;, &#039;keyboard-interactive&#039;])&lt;br&gt;&lt;br&gt;I have no clue why the error is asking for a different set of parameter. I am on a Windows XP machine, and trying to login to a Linux machine...</description>
		<content:encoded><![CDATA[<p>Hi</p>
<p>I followed ur example for paramiko and my code is like this..</p>
<p>import paramiko<br />import os</p>
<p>ssh = paramiko.SSHClient()<br />ssh.load_system_host_keys()<br />ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy())<br />ssh.connect(&#39;server-name&#39;,22,&#39;root&#39;,&#39;password&#39;)<br />stdin, stdout, stderr = ssh.exec_command(&#8220;ssh -V&#8221;)<br />stdout.readlines()</p>
<p>But, I am getting the following error!! &#8230; I am not sure why&#8230;Can u please help!!<br />Traceback (most recent call last):<br />  File &#8220;C:Documents and Settingsaannas01My DocumentsDownloadsssh-ver.py&#8221;, line 18, in <br />in &lt;module&gt;<br />    ssh.connect(&#39;server-name&#39;,22,&#39;root&#39;,&#39;password&#39;)<br />  File &#8220;C:Python26libsite-packagesparamikoclient.py&#8221;, line 309, in connect<br />    self._auth(username, password, pkey, key_filename, allow_agent, look_for_keys)<br />  File &#8220;C:Python26libsite-packagesparamikoclient.py&#8221;, line 463, in _auth<br />    raise saved_exception<br />BadAuthenticationType: Bad authentication type (allowed_types=[&#39;publickey&#39;, &#39;keyboard-interactive&#39;])</p>
<p>I have no clue why the error is asking for a different set of parameter. I am on a Windows XP machine, and trying to login to a Linux machine&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rachael</title>
		<link>http://jessenoller.com/2009/02/05/ssh-programming-with-paramiko-completely-different/comment-page-1/#comment-95029</link>
		<dc:creator>Rachael</dc:creator>
		<pubDate>Fri, 26 Jun 2009 20:12:49 +0000</pubDate>
		<guid isPermaLink="false">http://jessenoller.com/?p=465#comment-95029</guid>
		<description>Minor thing that probably no one else noticed, but when you talk about putting and getting, you say &quot;ftp.get&quot; both times, but if you&#039;re putting the command is actually &quot;ftp.put&quot;.  I&#039;m probably an idiot for not picking up on that, but it is mildly confusing.</description>
		<content:encoded><![CDATA[<p>Minor thing that probably no one else noticed, but when you talk about putting and getting, you say &#8220;ftp.get&#8221; both times, but if you&#39;re putting the command is actually &#8220;ftp.put&#8221;.  I&#39;m probably an idiot for not picking up on that, but it is mildly confusing.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
