Instead of using passwords, it's more secure to use ssh keys to control access to servers. It also makes it easier to automate systems using tools like Ansible.
To create an ssh key, on macOS or Linux, open up a terminal and type:
ssh-keygen -t rsa -b 4096 -C "email@example.com"
Set a pass phrase to protect access to your key (optional but recommended). the desktop will remember your pass phrase in the keyring when you log in so you don't have to enter it every time.