Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
execute remote command in script
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
gronlund2
n00b
n00b


Joined: 22 Jul 2005
Posts: 4

PostPosted: Mon Sep 19, 2005 6:14 pm    Post subject: execute remote command in script Reply with quote

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
View user's profile Send private message
oumpah-pah
Guru
Guru


Joined: 18 Jul 2004
Posts: 575
Location: Lausanne, Switzerland

PostPosted: Mon Sep 19, 2005 7:09 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
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