SearchFAQMemberlist Log in
Reply to topic Page 1 of 1
Backing up the backup server [SOLVED]
Author Message
Post Backing up the backup server [SOLVED] 
Thanks Keith!

Keith Edmunds wrote:
[snip]
- if all else fails, set 'LogLevel' to 'DEBUG' in /etc/ssh/sshd_config,
restart the sshd daemon and post the results of a failed login from
/var/log/auth (or maybe 'syslog', depending on your setup).

This idea showed the problem. Even though when contacting the remote
server I needed the "from" portion of /root/.ssh/authorized_keys to be
the bizarre result of dig -x my.ip.add.res (which comes back as
node-########.sfo.onnet.us.uu.net which I presume is what my DSL
provider calls my static IP despite it resolving via DNS to something
totally different) when connecting locally the "from" portion needed to
be my regular hostname.domainname.tld.

I can now accomplish unattended backups via the backup user for both
remote servers and the backup server itself. Thanks to everyone for
their help and to the developers for this great software!

Brian

Post Backing up the backup server [SOLVED] 
On Thu, 19 Jan 2006, Brian C wrote:

Thanks Keith!

Keith Edmunds wrote:
[snip]
- if all else fails, set 'LogLevel' to 'DEBUG' in /etc/ssh/sshd_config,
restart the sshd daemon and post the results of a failed login from
/var/log/auth (or maybe 'syslog', depending on your setup).

This idea showed the problem. Even though when contacting the remote server I
needed the "from" portion of /root/.ssh/authorized_keys to be the bizarre
result of dig -x my.ip.add.res (which comes back as
node-########.sfo.onnet.us.uu.net which I presume is what my DSL provider
calls my static IP despite it resolving via DNS to something totally
different) when connecting locally the "from" portion needed to be my regular
hostname.domainname.tld.

this is because you probably have an entry for your local address in
/etc/hosts which overrides the dns... in my docs i actually recommend just
using localhost when backing up the localhost...

as for the sudo problems you had you should make sure that you got the
exact same command line in /etc/sudoers as you specify as the fake
hostname for rdiff-backup... if you have any difference at all sudo
silently fails by asking you for your password and logging an error (check
your /var/log/secure or /var/log/auth or something depending on your
setup).

if the command is identical then maybe look at whether your sudo somehow
has NOPASSWD disabled... there's probably some way to increase sudo
logging verbosity as well.

fwiw sudo is higher performance for localhost because it avoids
encryption.

-dean

Display posts from previous:
Reply to topic Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
  


Magic SEO URL for phpBB