Don't put your password into a shell script. Shell scripts are not the place to put your password. Putting your password into a shell script is inadvisable. It is not recommended to put your password into a shell script.
If the above advice is not clear, repeat it a few dozen more times until it is.
With SSH your best bet is to use
ssh-keygen to make a public/private key pair. Then, on the remote machine, in
~/.ssh (or wherever your SSH has been set up to look for its configuration) edit the file
authorized_keys and paste your PUBLIC key. The file will, afterwards, look something like this:
ssh-rsa AAAAB3NzaC1yc2EAAAABJQ...elided for security...fdVEkAPINVd0=rsa-key-20100920
When that's in place you won't need a password to sign in.
edited to add
You need to place your PRIVATE key file into your local
~/.ssh directory and make sure that only you can read it.
further edited to add
This answer mentions the
ssh-copy-id utility which replaces all the manual editing I mentioned. Nice touch that. Use that instead.