Skip to content

Instantly share code, notes, and snippets.

@unicornist
Created September 23, 2019 21:04
Show Gist options
  • Save unicornist/a10c0ec8decf90264448a72f5e01d1bb to your computer and use it in GitHub Desktop.
Save unicornist/a10c0ec8decf90264448a72f5e01d1bb to your computer and use it in GitHub Desktop.

Revisions

  1. unicornist created this gist Sep 23, 2019.
    7 changes: 7 additions & 0 deletions ssh-copy-id for Windows.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,7 @@
    having any kind of command prompt that allows you to run basic linux commands (e.g. CAT) you could do the following:

    cat ~/.ssh/id_rsa.pub | ssh user@server "umask 077; test -d ~/.ssh || mkdir ~/.ssh ; cat >> ~/.ssh/authorized_keys"

    If you have no `id_rsa.pub` file you can create one like this:

    ssh-keygen -t rsa