ssh-open-id for Windows

As ssh-open-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"
}

Have a question⁉ Contact me.


linux

28 Words

2021-11-22