Skip to content

Instantly share code, notes, and snippets.

@dsaad68
Last active March 5, 2024 12:32
Show Gist options
  • Save dsaad68/8c7c907a3c2bef06ef8b92fa4fcdce5d to your computer and use it in GitHub Desktop.
Save dsaad68/8c7c907a3c2bef06ef8b92fa4fcdce5d to your computer and use it in GitHub Desktop.
Windows OpenSSH Equivalent of ssh-copy-id
  1. Generate an SSH Key
ssh-keygen
  1. Create .ssh dir on remote
mkdir ~/.ssh/
  1. Copy SSH Key to Remote Linux Device
type <path>\.ssh\id_rsa.pub | ssh <IP-ADDRESS-OR-FQDN> "cat >> .ssh/authorized_keys"
  1. Test
ssh <IP-ADDRESS-OR-FQDN>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment