How to add public key to servers authorized_keys file if i use it on Windows (cat command does not work simply) and i know how to add with scp command or with sftp and it's work fine but the problame is this is overwrite the current keys to new. I would like to add an secound key and i want to do it on secure.
I tred it but it dont find the directory root.
C:>type C:/Users/User/.ssh/id_rsa.pub | plink.exe -ssh user@host -pw "password" "cat >> Users/User/.ssh/authorized_keys"