V-Server Setup
This page documents how I configured my very first cloud server instance in the Developer Akademie DevSecOps Course.
TOC
Github Tip
Quickstart
- Create a SSH key pair on your local machine
- Login via
sshusing your username and designated password - Add your public SSH-Keys to the V-Servers
authorized_keyswith the following command:ssh-copy-id -i $HOME/.ssh/your-public-key.pub <user>@123.4.5.255
- Logout from Server, try logging in with the KEY information only ->
ssh -i <path/to/key> user@host- You should not be prompted for a password if it works correctly
- Log in to the V-Server again
- Disable Password-Login
- Disable Root-Login