diff --git a/03-login-without-password.md b/03-login-without-password.md new file mode 100644 index 0000000..ba5d3ab --- /dev/null +++ b/03-login-without-password.md @@ -0,0 +1,22 @@ +# Passwordless and Secure Login via SSH Key + +## Generate an SSH key locally + +```` +cd .ssh +ssh-keygen -t ed25519 -C "your_email@example.com" +```` + +Source: https://docs.github.com/en/authentication/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent + +## Copy your public SSH key to the Raspberry Pi + +```` +ssh-copy-id -i /Users/timo/.ssh/.pub pi@raspberrypi.local +```` + +## Login without a password + +```` +ssh raspberrypi.local +````