Configure SSH
First generate key on host system.
Add the generated key, so it is going to be automatically picked.
Connect to the Debian server and copy the public key on the server as authorized key.
Now we can connect via SSH, without password.
Disable password logins to make the server more secure.
Then we update PasswordAuthentication
from yes
to no
.
Then we need to restart SSH to apply changes.
Last updated
Was this helpful?