<?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: sshpass - Non-interactive ssh password authentication</title>
	<atom:link href="http://www.debianadmin.com/sshpass-non-interactive-ssh-password-authentication.html/feed" rel="self" type="application/rss+xml" />
	<link>http://www.debianadmin.com/sshpass-non-interactive-ssh-password-authentication.html</link>
	<description>Debian/Ubuntu Linux System Administration Tutorials,Howtos,Tips</description>
	<lastBuildDate>Thu, 18 Mar 2010 18:04:13 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: TK</title>
		<link>http://www.debianadmin.com/sshpass-non-interactive-ssh-password-authentication.html/comment-page-1#comment-4089</link>
		<dc:creator>TK</dc:creator>
		<pubDate>Tue, 01 Dec 2009 17:38:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.debianadmin.com/sshpass-non-interactive-ssh-password-authentication.html#comment-4089</guid>
		<description>Imagine you need to access a computer behind a &#039;login&#039; machine (or whatever would be the right name - firewall?). You can ssh into login and then ssh into the desired computer on the &quot;other side&quot; of the network. But, you&#039;re not allowed to read/write anything on login - then you can&#039;t use keys. The only solution is a program like this or an Expect script.

Pardon my informal writing, i&#039;m not an admin, just a user.</description>
		<content:encoded><![CDATA[<p>Imagine you need to access a computer behind a &#8216;login&#8217; machine (or whatever would be the right name - firewall?). You can ssh into login and then ssh into the desired computer on the &#8220;other side&#8221; of the network. But, you&#8217;re not allowed to read/write anything on login - then you can&#8217;t use keys. The only solution is a program like this or an Expect script.</p>
<p>Pardon my informal writing, i&#8217;m not an admin, just a user.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jmm</title>
		<link>http://www.debianadmin.com/sshpass-non-interactive-ssh-password-authentication.html/comment-page-1#comment-3274</link>
		<dc:creator>jmm</dc:creator>
		<pubDate>Fri, 26 Jun 2009 05:05:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.debianadmin.com/sshpass-non-interactive-ssh-password-authentication.html#comment-3274</guid>
		<description>Everyone knows this is insecure, but not any less secure then having an sshd server listening on the internet on port 22 with password login, yet tons of people do so for simplicity sake.  For low security situations sshpass blows trying to do this with expect out of the water. If this is not secure enough for your situation, I would hope you already know so or I bet you have been SOL for long time.  Thanks for the great simple app.</description>
		<content:encoded><![CDATA[<p>Everyone knows this is insecure, but not any less secure then having an sshd server listening on the internet on port 22 with password login, yet tons of people do so for simplicity sake.  For low security situations sshpass blows trying to do this with expect out of the water. If this is not secure enough for your situation, I would hope you already know so or I bet you have been SOL for long time.  Thanks for the great simple app.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John</title>
		<link>http://www.debianadmin.com/sshpass-non-interactive-ssh-password-authentication.html/comment-page-1#comment-2766</link>
		<dc:creator>John</dc:creator>
		<pubDate>Fri, 17 Apr 2009 10:19:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.debianadmin.com/sshpass-non-interactive-ssh-password-authentication.html#comment-2766</guid>
		<description>Drink, thanks. you saved a lot of time for me.</description>
		<content:encoded><![CDATA[<p>Drink, thanks. you saved a lot of time for me.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shachar Shemesh</title>
		<link>http://www.debianadmin.com/sshpass-non-interactive-ssh-password-authentication.html/comment-page-1#comment-2016</link>
		<dc:creator>Shachar Shemesh</dc:creator>
		<pubDate>Tue, 14 Oct 2008 09:18:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.debianadmin.com/sshpass-non-interactive-ssh-password-authentication.html#comment-2016</guid>
		<description>As upstream and Debian maintainer, I should point out that had the package description not been truncated, the warning about only using sshpass if public key authentication is not an option would have been shown here again, possibly saving half the comments on this article :-)

Then again, with people&#039;s tendency not to read before they comment, maybe not.

Shachar</description>
		<content:encoded><![CDATA[<p>As upstream and Debian maintainer, I should point out that had the package description not been truncated, the warning about only using sshpass if public key authentication is not an option would have been shown here again, possibly saving half the comments on this article <img src='http://www.debianadmin.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>Then again, with people&#8217;s tendency not to read before they comment, maybe not.</p>
<p>Shachar</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Drink</title>
		<link>http://www.debianadmin.com/sshpass-non-interactive-ssh-password-authentication.html/comment-page-1#comment-2015</link>
		<dc:creator>Drink</dc:creator>
		<pubDate>Wed, 10 Sep 2008 07:43:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.debianadmin.com/sshpass-non-interactive-ssh-password-authentication.html#comment-2015</guid>
		<description>When you connect for first time (RSA key is not in your .ssh/known_hosts file), you get this:
The authenticity of host &#039;some_hostname (192.168.....)&#039; can&#039;t be established
Are you sure you want to continue connecting (yes/no)?, and sshpass will hang.

Solution: use this ssh option: -o StrictHostKeyChecking=no:
ex: sshpass -p 1234 ssh -o StrictHostKeyChecking=no pw@some_hostname who</description>
		<content:encoded><![CDATA[<p>When you connect for first time (RSA key is not in your .ssh/known_hosts file), you get this:<br />
The authenticity of host &#8217;some_hostname (192.168&#8230;..)&#8217; can&#8217;t be established<br />
Are you sure you want to continue connecting (yes/no)?, and sshpass will hang.</p>
<p>Solution: use this ssh option: -o StrictHostKeyChecking=no:<br />
ex: sshpass -p 1234 ssh -o StrictHostKeyChecking=no pw@some_hostname who</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paul</title>
		<link>http://www.debianadmin.com/sshpass-non-interactive-ssh-password-authentication.html/comment-page-1#comment-2014</link>
		<dc:creator>Paul</dc:creator>
		<pubDate>Tue, 20 May 2008 19:06:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.debianadmin.com/sshpass-non-interactive-ssh-password-authentication.html#comment-2014</guid>
		<description>if you need to comply to the PCI-DSS standards for auditing, which means no automated key logins, yet you need to login to 100 machines to do sysadmin maintenance. Yes it sucks. Yes keys are better. no i have no choice.

See also: http://lostcompany.wunit.net/tech/dssh.html</description>
		<content:encoded><![CDATA[<p>if you need to comply to the PCI-DSS standards for auditing, which means no automated key logins, yet you need to login to 100 machines to do sysadmin maintenance. Yes it sucks. Yes keys are better. no i have no choice.</p>
<p>See also: <a href="http://lostcompany.wunit.net/tech/dssh.html" rel="nofollow">http://lostcompany.wunit.net/tech/dssh.html</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Karl O. Pinc</title>
		<link>http://www.debianadmin.com/sshpass-non-interactive-ssh-password-authentication.html/comment-page-1#comment-2013</link>
		<dc:creator>Karl O. Pinc</dc:creator>
		<pubDate>Sat, 10 May 2008 06:41:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.debianadmin.com/sshpass-non-interactive-ssh-password-authentication.html#comment-2013</guid>
		<description>Hi,

I&#039;m having trouble imagining when sshpass is a good idea.  If you&#039;re &quot;doing 64 machines doing a public-key on....every day&quot; then there&#039;s clearly an automated process involved.  The public/private keypair can run without user interaction and can be added to the automation.

When there is no particular advantage to public/private keys vs. sshpass then public/private keys should be used, because you may as well use the solution that works in the most cases so as to minimize the number of different technologies you&#039;re working with.  In fact, &quot;worse is better&quot;, even if sshpass has a slight advantage your going to be better off using public/private keys.  Under what circumstances does sshpass have a significant advantage?  No doubt there are some, but I can&#039;t think of any.  Can you elaborate?</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I&#8217;m having trouble imagining when sshpass is a good idea.  If you&#8217;re &#8220;doing 64 machines doing a public-key on&#8230;.every day&#8221; then there&#8217;s clearly an automated process involved.  The public/private keypair can run without user interaction and can be added to the automation.</p>
<p>When there is no particular advantage to public/private keys vs. sshpass then public/private keys should be used, because you may as well use the solution that works in the most cases so as to minimize the number of different technologies you&#8217;re working with.  In fact, &#8220;worse is better&#8221;, even if sshpass has a slight advantage your going to be better off using public/private keys.  Under what circumstances does sshpass have a significant advantage?  No doubt there are some, but I can&#8217;t think of any.  Can you elaborate?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Noisome</title>
		<link>http://www.debianadmin.com/sshpass-non-interactive-ssh-password-authentication.html/comment-page-1#comment-2012</link>
		<dc:creator>Noisome</dc:creator>
		<pubDate>Mon, 05 May 2008 14:14:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.debianadmin.com/sshpass-non-interactive-ssh-password-authentication.html#comment-2012</guid>
		<description>To Will, Harr, Marko:

Those who want sshpass do not want to setup the public key.  Most people know of that &quot;solution&quot; but in most instances where once is all that is needed or in testing environments where it is impractical to do setup public keys is where this shines.   Imagine 64 machines doing a public-key on......every day. So please, note once of what is secure, but don&#039;t disown that idea that this is a good solution for where it is needed.

Noisome</description>
		<content:encoded><![CDATA[<p>To Will, Harr, Marko:</p>
<p>Those who want sshpass do not want to setup the public key.  Most people know of that &#8220;solution&#8221; but in most instances where once is all that is needed or in testing environments where it is impractical to do setup public keys is where this shines.   Imagine 64 machines doing a public-key on&#8230;&#8230;every day. So please, note once of what is secure, but don&#8217;t disown that idea that this is a good solution for where it is needed.</p>
<p>Noisome</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tad Marko</title>
		<link>http://www.debianadmin.com/sshpass-non-interactive-ssh-password-authentication.html/comment-page-1#comment-2011</link>
		<dc:creator>Tad Marko</dc:creator>
		<pubDate>Mon, 05 May 2008 12:57:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.debianadmin.com/sshpass-non-interactive-ssh-password-authentication.html#comment-2011</guid>
		<description>Also, note that you can accomplish a more secure version of this using SSH key pairs as James Harr said in conjunction with &lt;a href=&quot;http://www.gentoo.org/proj/en/keychain/&quot; rel=&quot;nofollow&quot;&gt;keychain&lt;/a&gt;.</description>
		<content:encoded><![CDATA[<p>Also, note that you can accomplish a more secure version of this using SSH key pairs as James Harr said in conjunction with <a href="http://www.gentoo.org/proj/en/keychain/" rel="nofollow">keychain</a>.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Will</title>
		<link>http://www.debianadmin.com/sshpass-non-interactive-ssh-password-authentication.html/comment-page-1#comment-2010</link>
		<dc:creator>Will</dc:creator>
		<pubDate>Mon, 05 May 2008 10:04:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.debianadmin.com/sshpass-non-interactive-ssh-password-authentication.html#comment-2010</guid>
		<description>I completely agree with Mr. Harr. It would be much more better ( and simpler ) to setup public key authentication :

1. Generate key with ssh-keygen
2. Put the generated public key ( ~/.ssh/id_rsa.pub ) to the authorized_keys file in the target host ( ~/.ssh/authorized_keys )

That&#039;s it ! Simple, effective, and more secure.</description>
		<content:encoded><![CDATA[<p>I completely agree with Mr. Harr. It would be much more better ( and simpler ) to setup public key authentication :</p>
<p>1. Generate key with ssh-keygen<br />
2. Put the generated public key ( ~/.ssh/id_rsa.pub ) to the authorized_keys file in the target host ( ~/.ssh/authorized_keys )</p>
<p>That&#8217;s it ! Simple, effective, and more secure.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: James Harr</title>
		<link>http://www.debianadmin.com/sshpass-non-interactive-ssh-password-authentication.html/comment-page-1#comment-2009</link>
		<dc:creator>James Harr</dc:creator>
		<pubDate>Sun, 06 Apr 2008 17:28:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.debianadmin.com/sshpass-non-interactive-ssh-password-authentication.html#comment-2009</guid>
		<description>It should be noted that the use of a public/private key pair can achieve the same goal, but in a much more secure fashion.

http://linuxproblem.org/art_9.html

When you log in via ssh, the password is sent in plain-text though the encryption tunnel. This means that people watching the connection cannot see your password, however, if the server you are logging into is compromised, the server can see your password. This can be done simply by installing a rogue pam module. See pam_storepw here for more details: http://www.kernel.org/pub/linux/libs/pam/modules.html

For those seeking secure password solutions (without copying public keys around everywhere), you should probably read up on the Kerberos protocol a little bit. And note that most ssh + kerberos howtos implement the idea incorrectly if it does not involve the terms GSSAPI somewhere.

But yes, sshpass is a very nice tool for use in certain situations. I have used it in many. But, I thought I&#039;d add the standard &quot;insecure method&quot; disclaimer.</description>
		<content:encoded><![CDATA[<p>It should be noted that the use of a public/private key pair can achieve the same goal, but in a much more secure fashion.</p>
<p><a href="http://linuxproblem.org/art_9.html" rel="nofollow">http://linuxproblem.org/art_9.html</a></p>
<p>When you log in via ssh, the password is sent in plain-text though the encryption tunnel. This means that people watching the connection cannot see your password, however, if the server you are logging into is compromised, the server can see your password. This can be done simply by installing a rogue pam module. See pam_storepw here for more details: <a href="http://www.kernel.org/pub/linux/libs/pam/modules.html" rel="nofollow">http://www.kernel.org/pub/linux/libs/pam/modules.html</a></p>
<p>For those seeking secure password solutions (without copying public keys around everywhere), you should probably read up on the Kerberos protocol a little bit. And note that most ssh + kerberos howtos implement the idea incorrectly if it does not involve the terms GSSAPI somewhere.</p>
<p>But yes, sshpass is a very nice tool for use in certain situations. I have used it in many. But, I thought I&#8217;d add the standard &#8220;insecure method&#8221; disclaimer.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
