ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEA5H+wc6gm2V7lZyki4n+aleSZlj0g7MOAJhI1yEfJc EXOWORO@HADAPAN
SHA256:BKfOyHGBRTeuyThJxdXLVivOjGk+crhsJrf8zPqdVLkThese are my public SSH keys. If I need access to one of your servers, add them to the authorized_keys file of the account I should log in as. Public keys are safe to share, and my private keys never leave my machines.
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEA5H+wc6gm2V7lZyki4n+aleSZlj0g7MOAJhI1yEfJc EXOWORO@HADAPAN
SHA256:BKfOyHGBRTeuyThJxdXLVivOjGk+crhsJrf8zPqdVLkssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPSIkCOd9H58N375/fWl6qK5E8MkzeLMLDW9M5I8Dj6z exoworo@LOBI
SHA256:zjIIJRbJ7xhB2zXrbeHLHpBnDvtz4p9/bL4fY01sGpMLog in as the user I should connect as, then run this. It creates ~/.ssh if needed, appends all my keys and fixes the permissions.
mkdir -p ~/.ssh && chmod 700 ~/.ssh
cat >> ~/.ssh/authorized_keys <<'EOF'
# Exoworo
# Main
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEA5H+wc6gm2V7lZyki4n+aleSZlj0g7MOAJhI1yEfJc EXOWORO@HADAPAN
# PC
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPSIkCOd9H58N375/fWl6qK5E8MkzeLMLDW9M5I8Dj6z exoworo@LOBI
EOF
chmod 600 ~/.ssh/authorized_keys
Run this in PowerShell as the standard user I should connect as. For accounts in the Administrators group, Windows reads C:\ProgramData\ssh\administrators_authorized_keys instead, so append the keys to that file.
New-Item -ItemType Directory -Force "$env:USERPROFILE\.ssh" | Out-Null
Add-Content -Path "$env:USERPROFILE\.ssh\authorized_keys" -Value @'
# Exoworo
# Main
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEA5H+wc6gm2V7lZyki4n+aleSZlj0g7MOAJhI1yEfJc EXOWORO@HADAPAN
# PC
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPSIkCOd9H58N375/fWl6qK5E8MkzeLMLDW9M5I8Dj6z exoworo@LOBI
'@
To make sure the keys you added match the ones listed above, print their fingerprints and compare them.
ssh-keygen -lf ~/.ssh/authorized_keys
A plain text list of every key is always available at https://www.exoworo.cz/ssh?raw=1, ready for tools like Ansible or curl. Have a look at what you are about to append before you add it to an account.
Only add keys to accounts you actually want me to reach, and remove them again from authorized_keys when I no longer need access.