[SOLVED] passwordless rsync after changing password
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
if you use an account that can rsync without typing in a password, if you change the password on that account, do you have to redo the keys because of the new password or does that still work?
Password and keys are independent for the most part. authorized_keys does not change so you don't need a new key. If an account is locked or the password expires then the account will need to be unlocked/password changed before shared keys can be used again.
ok, great, so sounds like even if we change the password, the rsync should still work since the account isn't locked or anything like that, just has a different password.
Regardless of the authentication type, the account is checked to ensure
that it is accessible. An account is not accessible if it is locked,
listed in DenyUsers or its group is listed in DenyGroups . The defini-
tion of a locked account is system dependant. Some platforms have their
own account database (eg AIX) and some modify the passwd field ( '*LK*'
on Solaris and UnixWare, '*' on HP-UX, containing 'Nologin' on Tru64, a
leading '*LOCKED*' on FreeBSD and a leading '!' on most Linuxes). If
there is a requirement to disable password authentication for the account
while allowing still public-key, then the passwd field should be set to
something other than these values (eg 'NP' or '*NP*' ).
When I need to generate long, never to be used, passwords I like to use uuidgen(1).
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.