I\'m trying to use Expect in a Bash script to provide the SSH password. Providing the password works, but I don\'t end up in the SSH session as I should. It goes back strait
Add the 'interact' Expect command just before your EOD:
#!/bin/bash read -s PWD /usr/bin/expect <
This should let you interact with the remote machine until you log out. Then you'll be back in Bash.