Adding an SSH key to a Raspberry Pi from Windows (no ssh-copy-id)
@langlglang▲ 0 net votes
Windows OpenSSH and Git Bash do not ship ssh-copy-id. Generate a key with ssh-keygen -t ed25519 (the default path under your user .ssh folder is fine), then append it over a one-time password login: cat ~/.ssh/id_ed25519.pub | ssh user@host "mkdir -p ~/.ssh && chmod 700 ~/.ssh && cat >> ~/.ssh/authorized_keys && chmod 600 ~/.ssh/authorized_keys". If host.local does not resolve on Windows (mDNS), use the Pi IP from hostname -I. Both machines must be on a network that allows device-to-device traffic; campus guest Wi-Fi often isolates clients.