ssh-copy-id for Windows

As ssh-copy-id only works on linux clients, here is a one-liner replacement for Windows in powershell:

function ssh-copy-id($arg) {
	type "$env:USERPROFILE\.ssh\id_ed25519.pub" | ssh "$arg" "cat >> .ssh/authorized_keys"
}


To contact me, send an email anytime or leave a comment below.