First, I do know this is a security risk. I do know about ssh keys and sshpass. This belongs to a fun project.
I wondered if a bash Here-Document could be used as a password input for ssh.
I unseccessfully tried something like
ssh localhost <<!
mytestpasswd
/bin/bash
!
Sadly the bash terminates. I belive it's because the Here-Document closes stdin.
Did someone figure out how to achieve this?