Let's suppose we have 2 server. The server A and server B The server A and B contain the following linux users 'carlos' and 'peter'
The linux user peter has its .ssh folder with id_rsa, id_rsa.pub and known_host files on server A.
After that, I logged in by putty with user carlos and I scaled to root user by sudo su.
So I wish to copy peter's key(s) from peter@A to peter@B using ssh-copy-id being root. Just in case, I don't know the peter's password on both servers.
Is there any way to copy these keys using ssh-copy-id or another linux command?