<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wikidot="http://www.wikidot.com/rss-namespace">

	<channel>
		<title>rsync and ssh for MyBook World Ed (white)</title>
		<link>http://mybookworld.wikidot.com/forum/t-166488/rsync-and-ssh-for-mybook-world-ed-white</link>
		<description>Posts in the discussion thread &quot;rsync and ssh for MyBook World Ed (white)&quot;</description>
				<copyright></copyright>
		<lastBuildDate></lastBuildDate>
		
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-166488#post-524393</guid>
				<title>Re: rsync and ssh for MyBook World Ed (white)</title>
				<link>http://mybookworld.wikidot.com/forum/t-166488/rsync-and-ssh-for-mybook-world-ed-white#post-524393</link>
				<description></description>
				<pubDate>Thu, 02 Jul 2009 15:40:20 +0000</pubDate>
				<wikidot:authorName>hardwarem</wikidot:authorName>				<wikidot:authorUserId>346853</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>DOH! You are right. I used the wrong key. It is amazing how one can overlook the obvious.</p> <p>Thank you. I will change keys and retry!!</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-166488#post-523847</guid>
				<title>Re: rsync and ssh for MyBook World Ed (white)</title>
				<link>http://mybookworld.wikidot.com/forum/t-166488/rsync-and-ssh-for-mybook-world-ed-white#post-523847</link>
				<description></description>
				<pubDate>Wed, 01 Jul 2009 23:43:18 +0000</pubDate>
				<wikidot:authorName>david_tre07</wikidot:authorName>				<wikidot:authorUserId>342779</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Oh I see, it seems that you put a passphrase when you generated the rsa key.<br /> In my config I didn't put a password (passphrase).</p> <p>Try to re-generate the rsa key without a passphrase.</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-166488#post-523844</guid>
				<title>Re: rsync and ssh for MyBook World Ed (white)</title>
				<link>http://mybookworld.wikidot.com/forum/t-166488/rsync-and-ssh-for-mybook-world-ed-white#post-523844</link>
				<description></description>
				<pubDate>Wed, 01 Jul 2009 23:40:30 +0000</pubDate>
				<wikidot:authorName>david_tre07</wikidot:authorName>				<wikidot:authorUserId>342779</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>This script run from the MyBook<br /> And no password are prompted.</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-166488#post-523806</guid>
				<title>Re: rsync and ssh for MyBook World Ed (white)</title>
				<link>http://mybookworld.wikidot.com/forum/t-166488/rsync-and-ssh-for-mybook-world-ed-white#post-523806</link>
				<description></description>
				<pubDate>Wed, 01 Jul 2009 22:35:25 +0000</pubDate>
				<wikidot:authorName>hardwarem</wikidot:authorName>				<wikidot:authorUserId>346853</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Permissions are correct.</p> <p>Using the format of the script below results in:</p> <div class="code"> <pre> <code>#rsync -avz --partial -e "/usr/bin/ssh -p 22" /mysqlbackups/ root@duke:/backup/ Enter passphrase for key '/root/.ssh/id_rsa':</code> </pre></div> <p>and a command without explicit ssh is:</p> <div class="code"> <pre> <code>#rsync -avz /mysqlbackups/ admin@duke:/backup/ admin@duke's password:</code> </pre></div> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-166488#post-523802</guid>
				<title>Re: rsync and ssh for MyBook World Ed (white)</title>
				<link>http://mybookworld.wikidot.com/forum/t-166488/rsync-and-ssh-for-mybook-world-ed-white#post-523802</link>
				<description></description>
				<pubDate>Wed, 01 Jul 2009 22:29:53 +0000</pubDate>
				<wikidot:authorName>hardwarem</wikidot:authorName>				<wikidot:authorUserId>346853</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>1. This is a script to be run from the client computer or the MyBook?<br /> 2. Wouldn't this still be prompting for the password?</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-166488#post-523794</guid>
				<title>Re: rsync and ssh for MyBook World Ed (white)</title>
				<link>http://mybookworld.wikidot.com/forum/t-166488/rsync-and-ssh-for-mybook-world-ed-white#post-523794</link>
				<description></description>
				<pubDate>Wed, 01 Jul 2009 22:26:00 +0000</pubDate>
				<wikidot:authorName>david_tre07</wikidot:authorName>				<wikidot:authorUserId>342779</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>In addition, I have allready writed a script that I start on the WD disk with cron.<br /> Before using it you need bash, cron (ipkg install cron bash).</p> <p>Here it is (Sorry the comments are in French) :</p> <div class="code"> <pre> <code>#!/opt/bin/bash remoteHost=192.168.1.10 remotePort=22 remotePath=/shares/Download/ localPath=/shares/SYNC/ lockFile=/tmp/sync.lock logFile=/var/log/sync.log RSYNC=/usr/bin/rsync SSH=/usr/bin/ssh exec &gt;&gt; $logFile 2&gt;&amp;1 #Un fichier de lock existe deja on s'arrete if [ -f $lockFile ] then echo "[`date`] un fichier de lock existe deja on s'arrete" exit 1 fi echo "[`date`] Demarrage du sync" #On tag le demarrage /bin/touch $lockFile $RSYNC -avz --partial --append-verify -e "$SSH -p $remotePort" $localPath root@shield:$remotePath /bin/rm -f $lockFile echo "[`date`] fin du sync"</code> </pre></div> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-166488#post-523789</guid>
				<title>Re: rsync and ssh for MyBook World Ed (white)</title>
				<link>http://mybookworld.wikidot.com/forum/t-166488/rsync-and-ssh-for-mybook-world-ed-white#post-523789</link>
				<description></description>
				<pubDate>Wed, 01 Jul 2009 22:19:34 +0000</pubDate>
				<wikidot:authorName>david_tre07</wikidot:authorName>				<wikidot:authorUserId>342779</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Did you change the permissions of the root folder?<br /> chmod og-w /root</p> <p>Also verify that .ssh right are 700 and files inside 600</p> <p>Regards.</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://mybookworld.wikidot.com/forum/t-166488#post-523720</guid>
				<title>rsync and ssh for MyBook World Ed (white)</title>
				<link>http://mybookworld.wikidot.com/forum/t-166488/rsync-and-ssh-for-mybook-world-ed-white#post-523720</link>
				<description></description>
				<pubDate>Wed, 01 Jul 2009 20:38:26 +0000</pubDate>
				<wikidot:authorName>hardwarem</wikidot:authorName>				<wikidot:authorUserId>346853</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Call me an idiot if you will, but I am stuck. I am attempting to do something SIMPLE. On a networked machine, I want to run a cron job that will copy a directory tree to the MyBook. To do this (and not enter a password) requires an SSH connection.</p> <p>So, I created a certificate on the network machine (client). Then, I sent the public key to MyBook and stored it in the ~/.ssh/authorized_keys on MyBook (had to create folder). I updated the sshd_config to include:</p> <div class="code"> <pre> <code>PubkeyAuthentication yes AuthorizedKeysFile .ssh/authorized_keys</code> </pre></div> <p>When I attempt to connect via ssh, I get:</p> <div class="code"> <pre> <code>OpenSSH_4.3p2, OpenSSL 0.9.8e-fips-rhel5 01 Jul 2008 debug1: Reading configuration data /etc/ssh/ssh_config debug1: Applying options for * debug1: Connecting to MyBook [192.168.168.100] port 22. debug1: Connection established. debug1: permanently_set_uid: 0/0 debug1: identity file /root/.ssh/identity type -1 debug1: identity file /root/.ssh/id_rsa type 1 debug1: identity file /root/.ssh/id_dsa type -1 debug1: loaded 3 keys debug1: Remote protocol version 1.99, remote software version OpenSSH_3.9p1 debug1: match: OpenSSH_3.9p1 pat OpenSSH_3.* debug1: Enabling compatibility mode for protocol 2.0 debug1: Local version string SSH-2.0-OpenSSH_4.3 debug1: SSH2_MSG_KEXINIT sent debug1: SSH2_MSG_KEXINIT received debug1: kex: server-&gt;client aes128-cbc hmac-md5 none debug1: kex: client-&gt;server aes128-cbc hmac-md5 none debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024&lt;1024&lt;8192) sent debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP debug1: SSH2_MSG_KEX_DH_GEX_INIT sent debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY debug1: Host 'MyBook' is known and matches the RSA host key. debug1: Found key in /root/.ssh/known_hosts:2 debug1: ssh_rsa_verify: signature correct debug1: SSH2_MSG_NEWKEYS sent debug1: expecting SSH2_MSG_NEWKEYS debug1: SSH2_MSG_NEWKEYS received debug1: SSH2_MSG_SERVICE_REQUEST sent debug1: SSH2_MSG_SERVICE_ACCEPT received debug1: Authentications that can continue: publickey,password,keyboard-interactive debug1: Next authentication method: publickey debug1: Trying private key: /root/.ssh/identity debug1: Offering public key: /root/.ssh/id_rsa debug1: Authentications that can continue: publickey,password,keyboard-interactive debug1: Trying private key: /root/.ssh/id_dsa debug1: Next authentication method: keyboard-interactive debug1: Authentications that can continue: publickey,password,keyboard-interactive debug1: Next authentication method: password root@MyBook password:</code> </pre></div> <p>What is going wrong? Has someone else got their (white) MyBook working with rsync?? PLEASE help.</p> 
				 	]]>
				</content:encoded>							</item>
				</channel>
</rss>