Anonymous_User Absent Member.
Absent Member.
1073 views

RSYNC & SSH?

Hi

I am trying to make a mirror backup of the master server (OES2 with NSS
volume called DATA)

I have setup a SLES server to Rsync

I can manually enter the command rsync etc and it works but prompts for
password

My rsync command is

rsync -az -e ssh root@MAIN1:/media/nss/DATA/ /backup/MAIN1 --verbose
--progress --stats >>/var/log/Backup-MAIN1-$(date +%Y%m%d).log

How do I stop it from prompting for the password in SLES/OES2? Is it SSH?

Everything I read talks about a

~/.ssh/authorized_keys

folder on the remote server, but I get an error when I try to do it

Want to end up using CRON on this

I'm confused

I am new to linux we just migrated from NetWare


Labels (2)
0 Likes
2 Replies
Knowledge Partner
Knowledge Partner

Re: RSYNC & SSH?

OES2 Learning wrote:

>
> Everything I read talks about a
>
> ~/.ssh/authorized_keys
>


ssh can authenticate using public/private keys instead of a password.
Do a search, there is lots of information available about setting it
up. Here is one link I found.

http://www.lifelinux.com/setting-up-an-ssh-certificate/


--
Kevin Boyle - Knowledge Partner
If you find this post helpful and are using the web interface,
show your appreciation and click on the star below...
_____
Kevin Boyle - Knowledge Partner - Calgary, Alberta, Canada
Who are the Knowledge Partners?
If you appreciate my comments, please click the Like button.
If I have resolved your issue, please click the Accept as Solution button.
0 Likes
gleach1 Absent Member.
Absent Member.

Re: RSYNC & SSH?

SSH keys is the exact way that I do this for a client, works like a treat once it's set up

shouldnt take you more than a few minutes, it's a weird feeling logging in with no password for the first time though...

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.