<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.0.4" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: Script Tips: ssh-key For Apache</title>
	<link>http://www.boredworkers.com/2009/08/24/script-tips-ssh-key-for-apache/</link>
	<description>Get a grip!</description>
	<pubDate>Tue, 22 May 2012 09:20:47 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.0.4</generator>

	<item>
		<title>by: Matty C</title>
		<link>http://www.boredworkers.com/2009/08/24/script-tips-ssh-key-for-apache/#comment-133346</link>
		<pubDate>Wed, 11 Jan 2012 22:19:23 +0000</pubDate>
		<guid>http://www.boredworkers.com/2009/08/24/script-tips-ssh-key-for-apache/#comment-133346</guid>
					<description>nm...the above comment no longer applies!  Thanks!</description>
		<content:encoded><![CDATA[<p>nm&#8230;the above comment no longer applies!  Thanks!
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Matty C</title>
		<link>http://www.boredworkers.com/2009/08/24/script-tips-ssh-key-for-apache/#comment-133345</link>
		<pubDate>Wed, 11 Jan 2012 21:51:26 +0000</pubDate>
		<guid>http://www.boredworkers.com/2009/08/24/script-tips-ssh-key-for-apache/#comment-133345</guid>
					<description>Doing this for a regular user works like a charm.  However, when I do the above steps for the apache user, it still asks and prompts for a password.  I\'m trying to use this in conjunction with RSYNC.  It appears it only works for the root user.  Any advice?</description>
		<content:encoded><![CDATA[<p>Doing this for a regular user works like a charm.  However, when I do the above steps for the apache user, it still asks and prompts for a password.  I\&#8217;m trying to use this in conjunction with RSYNC.  It appears it only works for the root user.  Any advice?
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Shiv</title>
		<link>http://www.boredworkers.com/2009/08/24/script-tips-ssh-key-for-apache/#comment-132287</link>
		<pubDate>Mon, 12 Dec 2011 06:36:25 +0000</pubDate>
		<guid>http://www.boredworkers.com/2009/08/24/script-tips-ssh-key-for-apache/#comment-132287</guid>
					<description>I am still facing the problem. In httpd.conf file i am having \'Group apache User apache\'. 
Document Root /var/www/html/
I have create directory /var/www/html/.ssh and created rsa keys.
Done with other stuff too
But from browser it\'s not working. Although it\'s working from CLI
The errors m getting from error_log file is

[Mon Dec 12 12:03:10 2011] [error] [client 172.xx.x.xx] PHP Warning:  ssh2_connect(): Unable to connect to 172.xx.xx.xx1 on port 22 in /var/www/html/connection.php on line 31

[Mon Dec 12 12:03:10 2011] [error] [client 172.xx.x.xx] PHP Warning:  ssh2_connect(): Unable to connect to 172.xx.xx.xxx in /var/www/html/connection.php on line 31

&lt;strong&gt;gbyeow&lt;/strong&gt;: I think you're trying to use the ssh2_connect function in PHP. Try dumping whatever you need to do into a shell script and calling that shell using PHP shell_exec() instead. The instructions given above are for the client setup only. PHP has it's own contained environment. It's probably not able to pick up the keys that you created.</description>
		<content:encoded><![CDATA[<p>I am still facing the problem. In httpd.conf file i am having \&#8217;Group apache User apache\&#8217;.<br />
Document Root /var/www/html/<br />
I have create directory /var/www/html/.ssh and created rsa keys.<br />
Done with other stuff too<br />
But from browser it\&#8217;s not working. Although it\&#8217;s working from CLI<br />
The errors m getting from error_log file is</p>
<p>[Mon Dec 12 12:03:10 2011] [error] [client 172.xx.x.xx] PHP Warning:  ssh2_connect(): Unable to connect to 172.xx.xx.xx1 on port 22 in /var/www/html/connection.php on line 31</p>
<p>[Mon Dec 12 12:03:10 2011] [error] [client 172.xx.x.xx] PHP Warning:  ssh2_connect(): Unable to connect to 172.xx.xx.xxx in /var/www/html/connection.php on line 31</p>
<p><strong>gbyeow</strong>: I think you&#8217;re trying to use the ssh2_connect function in PHP. Try dumping whatever you need to do into a shell script and calling that shell using PHP shell_exec() instead. The instructions given above are for the client setup only. PHP has it&#8217;s own contained environment. It&#8217;s probably not able to pick up the keys that you created.
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Tabraiz Anwer</title>
		<link>http://www.boredworkers.com/2009/08/24/script-tips-ssh-key-for-apache/#comment-129469</link>
		<pubDate>Thu, 20 Oct 2011 09:15:14 +0000</pubDate>
		<guid>http://www.boredworkers.com/2009/08/24/script-tips-ssh-key-for-apache/#comment-129469</guid>
					<description>good work my friend..!! 
when i was trying before reading this link i was using user nobody:nobody.. 
so i have to clear one thing why this is [ apache : nobody ]why it is not [ nobody : nobody ] ?

&lt;strong&gt;gbyeow&lt;/strong&gt;: The apache service is run by the user apache. Boils down to which user is the owner of your apache server process.</description>
		<content:encoded><![CDATA[<p>good work my friend..!!<br />
when i was trying before reading this link i was using user nobody:nobody..<br />
so i have to clear one thing why this is [ apache : nobody ]why it is not [ nobody : nobody ] ?</p>
<p><strong>gbyeow</strong>: The apache service is run by the user apache. Boils down to which user is the owner of your apache server process.
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: rafa</title>
		<link>http://www.boredworkers.com/2009/08/24/script-tips-ssh-key-for-apache/#comment-125604</link>
		<pubDate>Mon, 20 Jun 2011 15:17:58 +0000</pubDate>
		<guid>http://www.boredworkers.com/2009/08/24/script-tips-ssh-key-for-apache/#comment-125604</guid>
					<description>Thanks a lot for this! Worked really well! Although now user apache is www-data and the group is www-data. The rest remains just perfect!</description>
		<content:encoded><![CDATA[<p>Thanks a lot for this! Worked really well! Although now user apache is www-data and the group is www-data. The rest remains just perfect!
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: ming tsai</title>
		<link>http://www.boredworkers.com/2009/08/24/script-tips-ssh-key-for-apache/#comment-107448</link>
		<pubDate>Thu, 12 Nov 2009 11:52:56 +0000</pubDate>
		<guid>http://www.boredworkers.com/2009/08/24/script-tips-ssh-key-for-apache/#comment-107448</guid>
					<description>nice, thx for the reference! it works for mine RHELs.</description>
		<content:encoded><![CDATA[<p>nice, thx for the reference! it works for mine RHELs.
</p>
]]></content:encoded>
				</item>
</channel>
</rss>

