Welcome to the new location of Alien's Wiki, sharing a single dokuwiki install with the SlackDocs Wiki.
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
linux:rsnapshot [2006/03/21 12:28] – alien | linux:rsnapshot [2008/11/24 22:19] – Add 'testing remote login' alien | ||
---|---|---|---|
Line 19: | Line 19: | ||
Good example docs about how to set this up are:\\ | Good example docs about how to set this up are:\\ | ||
- | | + | http:// |
and it's follow-up article:\\ | and it's follow-up article:\\ | ||
- | | + | http:// |
as well as some improvements to this:\\ | as well as some improvements to this:\\ | ||
- | | + | http:// |
Line 38: | Line 40: | ||
local# ssh remote-server | local# ssh remote-server | ||
; you might have to create the directory ~/.ssh if it doesnt exist: | ; you might have to create the directory ~/.ssh if it doesnt exist: | ||
- | ; " | + | ; " |
; if you don't get the permissions on ~/.ssh and ~/ | ; if you don't get the permissions on ~/.ssh and ~/ | ||
; passwordless login will FAIL! | ; passwordless login will FAIL! | ||
Line 60: | Line 62: | ||
* Create a user "// | * Create a user "// | ||
* Append the // | * Append the // | ||
- | | + | from=" |
- | AAAAB3NzaC1yc2EAAAAB.......0i9yTN7QTrcqKU9ugIesi3+EZnw5ES5wbpo8= | + | AAAAB3NzaC1yc2EAAAAB.......0i9yTN7QTrcqKU9ugIesi3+EZnw5ES5wbpo8= |
- | rbackup@TheVault</ | + | rbackup@TheVault |
- | * Create the ''/ | + | </ |
- | #!/bin/sh | + | * Create the ''/ |
- | case " | + | #!/bin/sh |
- | *\&*) | + | case " |
+ | *\&*) | ||
echo " | echo " | ||
;; | ;; | ||
- | | + | |
echo " | echo " | ||
;; | ;; | ||
Line 75: | Line 78: | ||
$SSH_ORIGINAL_COMMAND | $SSH_ORIGINAL_COMMAND | ||
;; | ;; | ||
- | | + | |
echo $SSH_ORIGINAL_COMMAND | echo $SSH_ORIGINAL_COMMAND | ||
;; | ;; | ||
- | | + | |
echo " | echo " | ||
;; | ;; | ||
- | | + | esac |
- | </ | + | </ |
+ | chown rbackup / | ||
+ | chmod 754 / | ||
+ | </ | ||
* Create a wrapper script for rsync (which uses sudo) in ''/ | * Create a wrapper script for rsync (which uses sudo) in ''/ | ||
/ | / | ||
</ | </ | ||
- | * Add this line to ''/ | + | * Add this line to ''/ |
+ | |||
+ | === Testing remote login === | ||
+ | |||
+ | When all configuration is complete, and before your scheduled cron jobs start, you should test whether the non-interactive passwordless login from the rsnapshot server to the remote //rbackup// account is functional.\\ You need to make a ssh connection at least once, to add the public key of the remote machine to your root account' | ||
+ | # ssh rbackup@client.my.lan | ||
+ | Rejected 3 | ||
+ | Connection to client.my.lan closed. | ||
+ | </ | ||