Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
and how to avoid/skip with a "yes" this/following warning ?
The authenticity of host 'mydomain.com (14.4.12.30)' can't be established.
RSA key fingerprint is c2:65:d5:57:af:95:11:ec:87:d6:35:a0:8b:99:a1:70.
Are you sure you want to continue connecting (yes/no)?
Thank you
Last edited by graziano1968; 08-13-2008 at 05:17 AM.
You only get that warning the first time you attach
See --password-file option
the problem is that I need to avoid the warning always (also for the first time) because I should send the command with a php script. And for my purpouse the --password-file is not safe at all. I wish to put the password inside an encrypted php file (inluded with the command , but as it seems also rsync does not permit it, damn !).
Last edited by graziano1968; 08-13-2008 at 05:29 AM.
You can create a passord-less setup with keys on a given remote user (let's say REMOTE_USER) and then use rsync this way:
rsync -e 'ssh -x -l REMOTE_USER' …other options…
I actually use this command on a daily basis without any password:
rsync -rzlpt --ignore-errors --delete --max-size=3M -e "ssh -x -l remote_me" "server:/important/place" "/local/backup"
You can create a passord-less setup with keys on a given remote user (let's say REMOTE_USER) and then use rsync this way:
rsync -e 'ssh -x -l REMOTE_USER' …other options…
I actually use this command on a daily basis without any password:
rsync -rzlpt --ignore-errors --delete --max-size=3M -e "ssh -x -l remote_me" "server:/important/place" "/local/backup"
Yves.
I never used ssh key , could you be more detailed (I'm lost)?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.