<?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>Mon, 02 Jan 2012 09:21:00 +0000</lastBuildDate>
	<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’t work.  It gives exception that ” U require a tty to run sudo”.<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.….…</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’t work.  It gives exception that ” U require a tty to run sudo”.<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.….…</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 — I think it’s a much better fundamental solution to SSH<br />programming than pexpect. I’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’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 “watch something and react” tool, then<br />yeah — pexpect makes sense, but we’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’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’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’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 — 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’t. I’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’m curious about something mentioned above… you seem to discourage use of pexpect for driving ssh sessions, but you launched into issues with ‘subprocess’ without specific comments about why pexpect isn’t a winner for you.  Have you had bad experiences with pexpect, and if so please elaborate…</p>
<p>Having used pexpect to drive cisco routers for the last 3 years, I have to say it’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(‘server-name’,22,‘root’,‘password’)<br />stdin, stdout, stderr = ssh.exec_command(“ssh –V”)<br />stdout.readlines()</p>
<p>But, I am getting the following error!! … I am not sure why…Can u please help!!<br />Traceback (most recent call last):<br />  File “C:Documents and Settingsaannas01My DocumentsDownloadsssh-ver.py”, line 18, in <br />in &lt;module&gt;<br />    ssh.connect(‘server-name’,22,‘root’,‘password’)<br />  File “C:Python26libsite-packagesparamikoclient.py”, line 309, in connect<br />    self._auth(username, password, pkey, key_filename, allow_agent, look_for_keys)<br />  File “C:Python26libsite-packagesparamikoclient.py”, line 463, in _auth<br />    raise saved_exception<br />BadAuthenticationType: Bad authentication type (allowed_types=[’publickey’, ‘keyboard-interactive’])</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…</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 “ftp.get” both times, but if you’re putting the command is actually “ftp.put”.  I’m probably an idiot for not picking up on that, but it is mildly confusing.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced
Object Caching 728/728 objects using disk: basic

Served from: jessenoller.com @ 2012-02-08 02:37:48 -->
