<?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>Mon, 06 Feb 2012 02:01:37 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: ML</title>
		<link>http://www.debianadmin.com/sshpass-non-interactive-ssh-password-authentication.html/comment-page-1#comment-8893</link>
		<dc:creator>ML</dc:creator>
		<pubDate>Tue, 20 Sep 2011 17:33:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.debianadmin.com/sshpass-non-interactive-ssh-password-authentication.html#comment-8893</guid>
		<description>The instance I am using this in is that we manage 500+ servers, and we can only make changes that are approved. I have to install an update to all of them, and we have no SSH key approval. Hence, this.</description>
		<content:encoded><![CDATA[<p>The instance I am using this in is that we manage 500+ servers, and we can only make changes that are approved. I have to install an update to all of them, and we have no SSH key approval. Hence, this.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brett</title>
		<link>http://www.debianadmin.com/sshpass-non-interactive-ssh-password-authentication.html/comment-page-1#comment-8892</link>
		<dc:creator>Brett</dc:creator>
		<pubDate>Tue, 20 Sep 2011 15:23:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.debianadmin.com/sshpass-non-interactive-ssh-password-authentication.html#comment-8892</guid>
		<description>sshpass is a lifesaver when dealing with LDAP-authenticated accounts on a Solaris server. The LDAP server won&#039;t disclose any account details without a password, so passwords are still required even when public key authentication is set up properly.</description>
		<content:encoded><![CDATA[<p>sshpass is a lifesaver when dealing with LDAP-authenticated accounts on a Solaris server. The LDAP server won&#8217;t disclose any account details without a password, so passwords are still required even when public key authentication is set up properly.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anon</title>
		<link>http://www.debianadmin.com/sshpass-non-interactive-ssh-password-authentication.html/comment-page-1#comment-8780</link>
		<dc:creator>Anon</dc:creator>
		<pubDate>Sat, 06 Aug 2011 03:37:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.debianadmin.com/sshpass-non-interactive-ssh-password-authentication.html#comment-8780</guid>
		<description>The right solution is to use this really complicated ssh-agent configuration, which requires an extra login password to start the ssh-agent, and a bunch of shell scripting. It consists of many parts each of which could break. Let&#039;s be realistic people, no one is going to want to do the right thing. If we lived in the right world all men would be angels, there would be no government, and we&#039;d all use Lisp.</description>
		<content:encoded><![CDATA[<p>The right solution is to use this really complicated ssh-agent configuration, which requires an extra login password to start the ssh-agent, and a bunch of shell scripting. It consists of many parts each of which could break. Let&#8217;s be realistic people, no one is going to want to do the right thing. If we lived in the right world all men would be angels, there would be no government, and we&#8217;d all use Lisp.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeff Sadowski</title>
		<link>http://www.debianadmin.com/sshpass-non-interactive-ssh-password-authentication.html/comment-page-1#comment-8767</link>
		<dc:creator>Jeff Sadowski</dc:creator>
		<pubDate>Thu, 04 Aug 2011 17:30:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.debianadmin.com/sshpass-non-interactive-ssh-password-authentication.html#comment-8767</guid>
		<description>Works beautifully with older cisco routers just as I expected it to and I can run it from a crontab job.
Now I can have my linux machine automate some of the tasks I have needed to run on my cisco routers.
Thank you so much.</description>
		<content:encoded><![CDATA[<p>Works beautifully with older cisco routers just as I expected it to and I can run it from a crontab job.<br />
Now I can have my linux machine automate some of the tasks I have needed to run on my cisco routers.<br />
Thank you so much.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeff Sadowski</title>
		<link>http://www.debianadmin.com/sshpass-non-interactive-ssh-password-authentication.html/comment-page-1#comment-8766</link>
		<dc:creator>Jeff Sadowski</dc:creator>
		<pubDate>Thu, 04 Aug 2011 16:35:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.debianadmin.com/sshpass-non-interactive-ssh-password-authentication.html#comment-8766</guid>
		<description>I&#039;m hoping that I can use this in scripts that I run from crontab (this is the trouble I had with expect scripts they needed a console) and connecting to older cisco routers (the cisco routers did not support key logins).</description>
		<content:encoded><![CDATA[<p>I&#8217;m hoping that I can use this in scripts that I run from crontab (this is the trouble I had with expect scripts they needed a console) and connecting to older cisco routers (the cisco routers did not support key logins).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Harry Hartynger</title>
		<link>http://www.debianadmin.com/sshpass-non-interactive-ssh-password-authentication.html/comment-page-1#comment-8606</link>
		<dc:creator>Harry Hartynger</dc:creator>
		<pubDate>Thu, 12 May 2011 11:11:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.debianadmin.com/sshpass-non-interactive-ssh-password-authentication.html#comment-8606</guid>
		<description>public key authentification might not always be available (virtual user accounts who end up in a shared login session of _one_ real system account)

Additionally in those scenarios you often have to face a password strategy which forces you to change your password every X days (often via some web interface before being able to log in) - clearly a policy like that won&#039;t work if the user simply could bypass this requirement by using ssh-agent and public key authentification</description>
		<content:encoded><![CDATA[<p>public key authentification might not always be available (virtual user accounts who end up in a shared login session of _one_ real system account)</p>
<p>Additionally in those scenarios you often have to face a password strategy which forces you to change your password every X days (often via some web interface before being able to log in) - clearly a policy like that won&#8217;t work if the user simply could bypass this requirement by using ssh-agent and public key authentification</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nick</title>
		<link>http://www.debianadmin.com/sshpass-non-interactive-ssh-password-authentication.html/comment-page-1#comment-5038</link>
		<dc:creator>Nick</dc:creator>
		<pubDate>Wed, 19 May 2010 16:50:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.debianadmin.com/sshpass-non-interactive-ssh-password-authentication.html#comment-5038</guid>
		<description>There ARE reasons to do this.  One that I use is with embedded development.  I am using ssh tools only to move newer versions of software to the embedded device.  Until release time, the password is something pointless like &quot;easypass&quot;, and I could care less if anyone can see the password running ps.</description>
		<content:encoded><![CDATA[<p>There ARE reasons to do this.  One that I use is with embedded development.  I am using ssh tools only to move newer versions of software to the embedded device.  Until release time, the password is something pointless like &#8220;easypass&#8221;, and I could care less if anyone can see the password running ps.</p>
]]></content:encoded>
	</item>
	<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 &#8216;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>

