<?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: Systems Administration with Perl and SSH</title>
	<atom:link href="http://serveradmins.net/systems-administration-with-perl-and-ssh/feed/" rel="self" type="application/rss+xml" />
	<link>http://serveradmins.net/systems-administration-with-perl-and-ssh/</link>
	<description>Stuff for Server Admins...</description>
	<lastBuildDate>Thu, 15 Jul 2010 01:31:14 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: chrism</title>
		<link>http://serveradmins.net/systems-administration-with-perl-and-ssh/comment-page-1/#comment-825</link>
		<dc:creator>chrism</dc:creator>
		<pubDate>Tue, 06 Apr 2010 22:00:39 +0000</pubDate>
		<guid isPermaLink="false">http://serveradmins.net/?p=45#comment-825</guid>
		<description>Ryan, 

Thanks for taking the time to comment. :)   

You know that&#039;s not a bad idea at all.  The application that I was working on at the office does have a need for keys, so it shouldnt&#039; be too hard to include support there.   I know that Net::SSH::Perl has the ability to handle keys via &lt;a href=&quot;http://search.cpan.org/~turnstep/Net-SSH-Perl-1.34/lib/Net/SSH/Perl/Key.pm&quot; rel=&quot;nofollow&quot;&gt; , but I haven&#039;t done that myself yet.   I&#039;ll put that on my to-do list though. :)

As to connecting via different users, you can always use the SSH object and populate the user field with whatever user you&#039;re wanting the script to login as. i.e., 
&lt;code&gt;my $ssh      = Net::SSH::Perl-&gt;new( $server, port =&gt; 22, use_pty =&gt; 1 );
$ssh-&gt;login( $user, $password );&lt;/code&gt;

So whatever you assign $user to will be what the script uses to auth if that makes  sense.&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p>Ryan, </p>
<p>Thanks for taking the time to comment. <img src='http://serveradmins.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />    </p>
<p>You know that&#8217;s not a bad idea at all.  The application that I was working on at the office does have a need for keys, so it shouldnt&#8217; be too hard to include support there.   I know that Net::SSH::Perl has the ability to handle keys via <a href="http://search.cpan.org/~turnstep/Net-SSH-Perl-1.34/lib/Net/SSH/Perl/Key.pm" rel="nofollow"> , but I haven&#8217;t done that myself yet.   I&#8217;ll put that on my to-do list though. <img src='http://serveradmins.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>As to connecting via different users, you can always use the SSH object and populate the user field with whatever user you&#8217;re wanting the script to login as. i.e.,<br />
<code>my $ssh      = Net::SSH::Perl-&gt;new( $server, port =&gt; 22, use_pty =&gt; 1 );<br />
$ssh-&gt;login( $user, $password );</code></p>
<p>So whatever you assign $user to will be what the script uses to auth if that makes  sense.</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ryan</title>
		<link>http://serveradmins.net/systems-administration-with-perl-and-ssh/comment-page-1/#comment-824</link>
		<dc:creator>Ryan</dc:creator>
		<pubDate>Sat, 03 Apr 2010 15:52:14 +0000</pubDate>
		<guid isPermaLink="false">http://serveradmins.net/?p=45#comment-824</guid>
		<description>Great post.  How about a slight twist...using keys to ssh as a different user?  For example i&#039;m to do this from a cgi script on a web site but I don&#039;t want to ssh to the remote host as apache/nobody?

Thanks!</description>
		<content:encoded><![CDATA[<p>Great post.  How about a slight twist&#8230;using keys to ssh as a different user?  For example i&#8217;m to do this from a cgi script on a web site but I don&#8217;t want to ssh to the remote host as apache/nobody?</p>
<p>Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: chrism</title>
		<link>http://serveradmins.net/systems-administration-with-perl-and-ssh/comment-page-1/#comment-752</link>
		<dc:creator>chrism</dc:creator>
		<pubDate>Sat, 13 Feb 2010 00:32:13 +0000</pubDate>
		<guid isPermaLink="false">http://serveradmins.net/?p=45#comment-752</guid>
		<description>David, 

It truly depends on the circumstances and the situations.   For example, the situation I&#039;m writing for now is using Net::SSH::Perl to login to a customer&#039;s machine and perform some basic tests and verifications on the environment.  We don&#039;t have control over the clients machine, so they&#039;ll typically have us use a login/password combination.  Every now and then we&#039;ll be given a private key to use which is usable as well.  If you&#039;d want, I should be able to whip up some examples that use a key in place of the login/password combo, just let me know. =)</description>
		<content:encoded><![CDATA[<p>David, </p>
<p>It truly depends on the circumstances and the situations.   For example, the situation I&#8217;m writing for now is using Net::SSH::Perl to login to a customer&#8217;s machine and perform some basic tests and verifications on the environment.  We don&#8217;t have control over the clients machine, so they&#8217;ll typically have us use a login/password combination.  Every now and then we&#8217;ll be given a private key to use which is usable as well.  If you&#8217;d want, I should be able to whip up some examples that use a key in place of the login/password combo, just let me know. =)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David</title>
		<link>http://serveradmins.net/systems-administration-with-perl-and-ssh/comment-page-1/#comment-751</link>
		<dc:creator>David</dc:creator>
		<pubDate>Fri, 12 Feb 2010 12:02:20 +0000</pubDate>
		<guid isPermaLink="false">http://serveradmins.net/?p=45#comment-751</guid>
		<description>So, you would consider storing passwords in perl scripts and not use keys? Confused.</description>
		<content:encoded><![CDATA[<p>So, you would consider storing passwords in perl scripts and not use keys? Confused.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->