S
S
sallyruthstruik2013-01-22 19:17:36
linux
sallyruthstruik, 2013-01-22 19:17:36

rsync automatic authorization

There is NAS. The rsync server is running on it. There are two computers that should automatically synchronize files with the NAS. This is done through rsync. Only rsync always asks for a password. So, is it possible to somehow automatically enter this password so that you don’t have to manually enter it every time?

Working via ssh is not suitable

Answer the question

In order to leave comments, you need to log in

2 answer(s)
3
3vi1_0n3, 2013-01-22
@sallyruthstruik

Can.
Some modules on the remote daemon may require authentication. If so, you will receive a password prompt when you connect. You can avoid the password prompt by setting the environment variable RSYNC_PASSWORD to the password you want to use or using the --password-file option. This may be useful when scripting rsync. WARNING: On some systems environment variables are visible to all users. On those systems using --password-file is recommended.

E
Evgeny Yablokov, 2013-01-22
@Gular

I don't know how it is in terms of capabilities on the NAS. rsync can be configured as a daemon, authorization will not be through SSH. Own port, protocol for rsyncd.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question