I already know that there are other questions like this, but their answers don't help me. The suggestion in other forums was to use
sshpass or pre install the ssh keys, but I can't use
sshpass and I can't pre install ssh keys in the system.
I want to copy my ssh key to a remote server using stdin in
ssh-copy-id or another method where I can pass the password by stdin using
Something like this:
echo -e "1234" | ssh firstname.lastname@example.org "echo "my_key" >> ~/.ssh/authorized_keys"
This is on a CentOS system.