Setting a user password is easy :


passwd backup_user

This is easy when you setup password less setup for server to server copy :

(server 1)

ssh-keygen -t rsa
ssh-copy-id [email protected]

now you need a password on [email protected]

(server 2)

passwd user

after it, you can “delete” the password again using :

passwd -d user

Great little trick 🙂