You are not logged in.

#1 2006-03-17 02:39:01

_Gandalf_
Member
Registered: 2006-01-12
Posts: 735

Rsync question [SOLVED]

Hello,

I have many rsync operation that i d regulary and all combined in one script but the problem is that i have more then 10+ password request because i rsync using ssh.. is there any way to rsync (ssh or not) by asking a pass one time, or better never ask ?

rsync commands look like this:

rsync -avuz --delete /home/wael/Files/Repo/wael/ root@server:/var/www/virtual/nasreddine.com/wael/htdocs/files/arch/repo/wael/

Offline

#2 2006-03-17 02:43:36

cactus
Taco Eater
From: t͈̫̹ͨa͖͕͎̱͈ͨ͆ć̥̖̝o̫̫̼s͈̭̱̞͍̃!̰
Registered: 2004-05-25
Posts: 4,622
Website

Re: Rsync question [SOLVED]

no asky is easy. Just create an ssh key, with no passphrase. then use keybased auth (copy your key.pub to remote site's ~/.ssh/authorized_keys


"Be conservative in what you send; be liberal in what you accept." -- Postel's Law
"tacos" -- Cactus' Law
"t̥͍͎̪̪͗a̴̻̩͈͚ͨc̠o̩̙͈ͫͅs͙͎̙͊ ͔͇̫̜t͎̳̀a̜̞̗ͩc̗͍͚o̲̯̿s̖̣̤̙͌ ̖̜̈ț̰̫͓ạ̪͖̳c̲͎͕̰̯̃̈o͉ͅs̪ͪ ̜̻̖̜͕" -- -̖͚̫̙̓-̺̠͇ͤ̃ ̜̪̜ͯZ͔̗̭̞ͪA̝͈̙͖̩L͉̠̺͓G̙̞̦͖O̳̗͍

Offline

#3 2006-03-17 03:02:11

_Gandalf_
Member
Registered: 2006-01-12
Posts: 735

Re: Rsync question [SOLVED]

I found out another way by using rsync daemon on server, not secure as much ssh is, but anyway ports are closed for external access, only within my private network

Offline

#4 2006-03-17 03:11:34

_Gandalf_
Member
Registered: 2006-01-12
Posts: 735

Re: Rsync question [SOLVED]

Thanks for the key-based hint, I never knew about that in ssh so thanks man smile, works great big_smile

Offline

Board footer

Powered by FluxBB