<?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/"
	xmlns:series="http://unfoldingneurons.com/"
		>
<channel>
	<title>Comments on: keychain: Set Up Secure Passwordless SSH Access For Backup Scripts</title>
	<atom:link href="http://www.cyberciti.biz/faq/ssh-passwordless-login-with-keychain-for-scripts/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.cyberciti.biz/faq/ssh-passwordless-login-with-keychain-for-scripts/</link>
	<description>Every answer asks a more beautiful question.</description>
	<lastBuildDate>Fri, 19 Mar 2010 08:35:37 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Neil Jensen</title>
		<link>http://www.cyberciti.biz/faq/ssh-passwordless-login-with-keychain-for-scripts/comment-page-1/#comment-43890</link>
		<dc:creator>Neil Jensen</dc:creator>
		<pubDate>Wed, 30 Sep 2009 04:43:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.cyberciti.biz/faq/?p=3938#comment-43890</guid>
		<description>Hi, I have been trying to get rsnapshot to run with keychain under cron for root when logged out.  

For me adding 
source /root/.keychain/-sh
to cmd_preexec in the rsnapshot.conf did not work
What has finally worked for me which works remotely and locally is:
under cron run a command pointing to shell scripts for hourly daily weekly and monthly rsnapshots

my script is for hourly backups is hourly.sh
#!/bin/bash
ENV=/root/.bashrc
source /root/.keychain/-sh
rsnapshot hourly

the reason why this was needed is because cron for ssh doesn&#039;t enter a shell to perform it&#039;s function, so before rsnapshot begins you must point the process into a shell or you get an annoying and failing error 255 stating rsync couldn&#039;t ssh(or something like that).  Then just re comment the cmd_preexec line in the rsnapshot.conf</description>
		<content:encoded><![CDATA[<p>Hi, I have been trying to get rsnapshot to run with keychain under cron for root when logged out.  </p>
<p>For me adding<br />
source /root/.keychain/-sh<br />
to cmd_preexec in the rsnapshot.conf did not work<br />
What has finally worked for me which works remotely and locally is:<br />
under cron run a command pointing to shell scripts for hourly daily weekly and monthly rsnapshots</p>
<p>my script is for hourly backups is hourly.sh<br />
#!/bin/bash<br />
ENV=/root/.bashrc<br />
source /root/.keychain/-sh<br />
rsnapshot hourly</p>
<p>the reason why this was needed is because cron for ssh doesn&#8217;t enter a shell to perform it&#8217;s function, so before rsnapshot begins you must point the process into a shell or you get an annoying and failing error 255 stating rsync couldn&#8217;t ssh(or something like that).  Then just re comment the cmd_preexec line in the rsnapshot.conf</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Heikki Orsila</title>
		<link>http://www.cyberciti.biz/faq/ssh-passwordless-login-with-keychain-for-scripts/comment-page-1/#comment-42730</link>
		<dc:creator>Heikki Orsila</dc:creator>
		<pubDate>Sun, 26 Jul 2009 16:47:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.cyberciti.biz/faq/?p=3938#comment-42730</guid>
		<description>ssh-copy-id command is an easier way to copy your public key to a server:

ssh-copy-id -i ~/.ssh/id_dsa.pub user@host</description>
		<content:encoded><![CDATA[<p>ssh-copy-id command is an easier way to copy your public key to a server:</p>
<p>ssh-copy-id -i ~/.ssh/id_dsa.pub user@host</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lexsys</title>
		<link>http://www.cyberciti.biz/faq/ssh-passwordless-login-with-keychain-for-scripts/comment-page-1/#comment-42137</link>
		<dc:creator>Lexsys</dc:creator>
		<pubDate>Fri, 19 Jun 2009 08:11:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.cyberciti.biz/faq/?p=3938#comment-42137</guid>
		<description>I have a problem with my rsnapshot configuration. If I enter your command into rsnapshot.conf file, I get an error:
&lt;code&gt;ERROR: cmd_preexec source /home/lexsys/.keychain/dev-server-sh - &quot;source&quot; is not executable or can&#039;t be found. Please use an absolute path. &lt;/code&gt;

I created an executable 1.sh, placed the command into this file and write in rsnapshot.conf:
&lt;code&gt;cmd_preexec /root/1.sh&lt;/code&gt;

Everything works fine.</description>
		<content:encoded><![CDATA[<p>I have a problem with my rsnapshot configuration. If I enter your command into rsnapshot.conf file, I get an error:<br />
<code>ERROR: cmd_preexec source /home/lexsys/.keychain/dev-server-sh - "source" is not executable or can't be found. Please use an absolute path. </code></p>
<p>I created an executable 1.sh, placed the command into this file and write in rsnapshot.conf:<br />
<code>cmd_preexec /root/1.sh</code></p>
<p>Everything works fine.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ulver</title>
		<link>http://www.cyberciti.biz/faq/ssh-passwordless-login-with-keychain-for-scripts/comment-page-1/#comment-41969</link>
		<dc:creator>Ulver</dc:creator>
		<pubDate>Mon, 08 Jun 2009 13:11:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.cyberciti.biz/faq/?p=3938#comment-41969</guid>
		<description>another interesting way to protect ssh,  is chroot them, but it depends of the particulary needs of each one</description>
		<content:encoded><![CDATA[<p>another interesting way to protect ssh,  is chroot them, but it depends of the particulary needs of each one</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Colin</title>
		<link>http://www.cyberciti.biz/faq/ssh-passwordless-login-with-keychain-for-scripts/comment-page-1/#comment-41942</link>
		<dc:creator>Colin</dc:creator>
		<pubDate>Sat, 06 Jun 2009 22:20:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.cyberciti.biz/faq/?p=3938#comment-41942</guid>
		<description>I think I found a typo. 
&quot;OpenSSH sshd server offers two additional option to protect abuse of keys. First, make sure root login disabled (PermitRootLogin yes).&quot;</description>
		<content:encoded><![CDATA[<p>I think I found a typo.<br />
&#8220;OpenSSH sshd server offers two additional option to protect abuse of keys. First, make sure root login disabled (PermitRootLogin yes).&#8221;</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.095 seconds -->
