On Tue, Mar 23, 2010 at 3:34 AM, Kenneth L. Owen <[email protected]>wrote:
> Hi Luis,
>
> Even before I got your note, I think figured out the problem. With so
> many changes since I started rebuilding the archiving server, problem
> generating keys, getting keys generated and then deciding to not use
> root logon, I simply forgot that I had not generated keys for backuppc
> as a simple user!
>
> I logged in as backuppc on the archiving server and created an rsa key.
> This was then ssh-copy-id <client1>. This seemed to work properly with
> a note to 'ssh <client1>' to test the key. I issued command 'ssh
> <client1> and connected without a password request. <archiver>
> represents the server running the backuppc software, <client1>
> represents the real client machine_name and <share1> represent the real
> share_name.
> ----------------- backuppc ssh logon -------------------------------
> backuppc@<archiver>:~$ ssh <client1>
> Linux <client1> 2.6.24-27-generic #1 SMP Fri Mar 12 01:10:31 UTC 2010
> i686
>
> The programs included with the Ubuntu system are free software;
> the exact distribution terms for each program are described in the
> individual files in /usr/share/doc/*/copyright.
>
> Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by
> applicable law.
>
> To access official Ubuntu documentation, please visit:
> http://help.ubuntu.com/
> Last login: Mon Mar 22 20:31:44 2010 from archiver
> backuppc@<client1>:~$
> ---------------- end of logon session ------------------------------
>
> I thought that it should work now, so I requested a manual backup. The
> command seemed to be accepted and the log showed a full backup had
> started. There was a bit of activity for about a minute, then nothing.
> After a few minutes with no activity, I stopped/dequeued the request. I
> am closer, but haven't gotten it all in place as yet. I didn't get any
> error until I stopped it. It said:
>
> 2010-03-22 21:20:24 full backup started for directory /media/<share1>
> 2010-03-22 21:38:19 Aborting backup up after signal INT
> 2010-03-22 21:38:20 Got fatal error during xfer (fileListReceive
> failed)
>
> I am wondering about the text generated in response to the logon above.
> When I logon with a password, I get the password prompt, enter password
> and get the last login message. This is the first time I've seen the
> text "Linux <client1> 2.6.24-27-generic / ... cut ... /
> http://help.ubutu.com/" Could this be messing up the process?
>
> The "welcome" message is normal, I have it too. If it prompts for nothing,
it would be ok.
The all process should has been easier, but it seems very near to be working
now :)
check if you ssh-copy-id the key from the client to the server too.
Communication is based on exchanging public keys both ways (I think I may
say this...)
Good job
> I also have another question. I seem to remember something being said
> about the restore process and having to give a password for root to do
> the restore. I know that I have to switch the lines in sudoers as well.
> Do I need to create a key for root with a strong passphrase on the
> client machines and append it to authorized_keys in /var/lib/backuppc?
>
>
You don't need to give root password if you set sudoers right. restore cmd
will be run as root with NOPASSWD (no need for password to run those
commands as root).
You can now have a key for root with a strong passphrase, but you dont have
to. As it is, you may even have no keys for root and not allow ssh as root
in any machine. That was the all point.
Congrats
Luis
> As soon as I get the backup working, I want to test the restore
> function. If that doesn't work, there's no sense having a backup!
> Regards, -- ken
>
> > Hi Ken
> >Check Les message to see what may be happening
> >
> > And be logic. Before anything else you must be able to log as backuppc
> > user on server and issue
> > $ ssh <client1>
> > and get logged to your client without any question.
> >
> > Regards
> >
> > On Mon, Mar 22, 2010 at 12:50 PM, Les Mikesell <[email protected]>
> > wrote:
> Luis Paulo wrote:
> >
> > I'll focus on the message:
> > Got remote protocol 1881173838
> > Fatal error (bad version): No protocol specified
> >
> > I usually get something like
> >
> > Got remote protocol 30
> > Negotiated protocol version 28
> >
> > But I don't know what it can mean. Maybe someone else can
> help.
>
>
> That usually means something printed text to the connection
> before or instead of
> starting rsync. Are you sure it isn't asking for a password or
> displaying the
> condescending sudo message (or a message of the day) as the
> connection starts?
>
> --
>
> Les Mikesell
> [email protected]
>
>
>
>
> ------------------------------------------------------------------------------
> Download Intel® Parallel Studio Eval
> Try the new software tools for yourself. Speed compiling, find bugs
> proactively, and fine-tune applications for parallel performance.
> See why Intel Parallel Studio got high marks during beta.
> http://p.sf.net/sfu/intel-sw-dev
> _______________________________________________
> BackupPC-users mailing list
> [email protected]
> List: https://lists.sourceforge.net/lists/listinfo/backuppc-users
> Wiki: http://backuppc.wiki.sourceforge.net
> Project: http://backuppc.sourceforge.net/
>
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
BackupPC-users mailing list
[email protected]
List: https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki: http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/