In a bash script, I want to know know how to pipe in answers like for example:
ssh -l username -i /home/ubuntu/.ssh/id host.com < yes
The ssh connection would ask if I would like to continue the connection and I want to pipe in the answer yes automatically and enter me in, but my script "< yes" doesn't seem to work. Does anyone know how to properly type and pipe the response "yes" in bash under Ubuntu?