Setting up a new server¶
This page may be incomplete or not up to date.
Once provisioned, all servers are configured using automated tools such as Ansible/Terraform. But in some cases, certain initial setup is needed before these tools can run.
Preparing a server for Ansible¶
Change the password of the root user¶
# passwd
New password: <type password here>
Retype new password: <retype to confirm>
Import SSH publickeys¶
The keys can be found at https://github.com/sabnatarajan.keys. Download and put them in /.ssh/authorized_keys
On Ubuntu, importing is easy with the ssh-import-id-gh tool.
# ssh-import-id-gh sabnatarajan
Restart the SSH service: # systemctl restart ssh