Storing passwords for servers you run is one of those tasks that needs to be done safely and, in a way that can it can be found when you need it.
However, logging in to your server when you need to type in you password over and over again is not only boring, but takes time and effort.
Not to mention that storing server passwords with teams puts you in a danger of having somebody else handling them without care.
There is an option to do this easily and without using passwords. Just follow these steps:
- Copy your computers public key:
pbcopy < ~/.ssh/id_rsa.pub
- Login to server and edit following file:
- Append key you copied and save the file
- Make sure you do following:
chmod 640 ~/.ssh/authorized_keys
- Check if
After you added your key, you will be able to login to the server without using passwords. :)