Skip to content

Instantly share code, notes, and snippets.

@Lehmaning
Last active December 3, 2021 07:46
Show Gist options
  • Save Lehmaning/f4adcac8a5458242bff6636471f32d15 to your computer and use it in GitHub Desktop.
Save Lehmaning/f4adcac8a5458242bff6636471f32d15 to your computer and use it in GitHub Desktop.
Command 'ssh-copy-id' in Windows (cmder)
REM ...
ssh-copy-id=type %USERPROFILE%\.ssh\id_rsa.pub | ssh $* "cat >> .ssh/authorized_keys"
:: References:
:: ssh-copy-id in Windows - https://www.chrisjhart.com/Windows-10-ssh-copy-id/
:: Parameter with Cmder aliases- https://github.com/cmderdev/cmder/issues/376
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment