Is this port forwarding or something else
- From: reader@xxxxxxxxxxx
- Date: Fri, 17 Feb 2006 22:34:44 -0600
I have a tricky problem... at least to me it seems complicated.
I want to run an rsnapshot backup from one remote host to another.
Rsnapshot uses ssh for networking and has allowance for passing
commands to ssh in its conf file.
In order for this to work, a password has to be given at some point.
If ssh-agent is setup and used to avoid a password still a password or
phrase is needed at some time to start the agent and ssh-add your
key.
If both machines are remote how can this be managed from the local
machine?
I mean, I can setup a forwarded port and talk to the second remote as
if from remote1 with something like:
ssh -L 2219:rhost2:22 rhost1
then in rsnapshot config.
ssh -p 2219 [rhost2 will be stipulated in rsnapshot.conf]
And if I've setup authorized_keys all around. There will be no login
prompt, using the ssh-agent on localhost.
But then of course the backup data would come to localhost, and it
needs to go to rhost1
So I'm drawing a blank in man ssh as to syntax to get an rsnaphot
backup run between rhost1 and rhost2 using the ssh-agent on locahost?
All these machinations are coming up because I can't think of a way to
automate rsnaphsot backups between rhost1 and rhost2 without having to
login on rhost1 to either run the command or start the ssh-agent and
add the necessary key with ssh-add so a cron job can access the
socket.
I have user privs on rhost1 and rhost2 but root on localhost.
Things could be automated from localhost since I have the agent setup
when X starts. That is, on locahost the ENV variables can always be
acessed by scripting thru cron, since the agent is running and has had
my key added. The socket is available.
So to get to it, is it possible to tell ssh to setup a three way
tunnel and move data from rhost2 to rhost1 using ssh-agent from
localhost? If so does anyone have a stab examples of the requred
syntax?
.
- Follow-Ups:
- Re: Is this port forwarding or something else
- From: Neil W Rickert
- Re: Is this port forwarding or something else
- Prev by Date: Re: Keep ssh-agent running on remote machine
- Next by Date: Re: X.509 and ssh
- Previous by thread: Keep ssh-agent running on remote machine
- Next by thread: Re: Is this port forwarding or something else
- Index(es):
Relevant Pages
|
Loading