Connection SSH to remote by ssh

Hello guys!

I am setting up a script to access a unix remote server. My problem is that when I put the ssh line "my host", the script does not wait for the server response asking for the password to execute the line in which I put the password, that is, I need to put a form in which script has a confirmation of first line before executing the second line.

My script

sh "my host"
"My password"
help
exit

Hi,

Do you want the script to open an interactive shell for you, or should it remotely execute something.

Can you show us what you have tried so far?

Regards

Gull04