View previous topic :: View next topic |
Author |
Message |
gronlund2 n00b
Joined: 22 Jul 2005 Posts: 4
|
Posted: Mon Sep 19, 2005 6:14 pm Post subject: execute remote command in script |
|
|
Hi.
I'm setting up a cvs backup/mirror. I need to temporarily disable cvs access on the remote host that is to be backed-up since a check-in during rsync may leave the back-upped repository in an inconsistent state. So I need to execute a remote command in my back-up script (to disable cvs on the remote machine).
Judging from the manuals it's a real pain to do this with ssh. If I generate keys and distribute the public key, I still need to supply a pass-phrase. And using ssh-agent seems like a real mess to me. Is there any easy way to execute a remote command in a script (i.e. automatically supply a password)?
Can I run rsync on the to be backed-up server instead? (No need to execute the remote command then.)
Sorry if this is a silly question (i.e. too easy...)
Grateful for your help.
/G2[/i][/b] |
|
Back to top |
|
|
oumpah-pah Guru
Joined: 18 Jul 2004 Posts: 575 Location: Lausanne, Switzerland
|
Posted: Mon Sep 19, 2005 7:09 pm Post subject: |
|
|
When you generate private and public keys for ssh, you can leave the passphrase empty, so that ssh connects to the remote machine without asking you anything. |
|
Back to top |
|
|
|