ssh-keygen -t ed25519 -b 4096
icacls "C:/Users/<user>/.ssh/id_ed25519.pub" /grant :R
$USER_AT_HOST="<remote user>@<remote hostname>"
$PUBKEYPATH="$HOME\.ssh\id_ed25519.pub"
$pubKey=(Get-Content "$PUBKEYPATH" | Out-String); ssh -p 2222 "$USER_AT_HOST" "mkdir -p ~/.ssh && chmod 700 ~/.ssh && echo '${pubKey}' >> ~/.ssh/authorized_keys && chmod 600 ~/.ssh/authorized_keys"