So I am running Linux Mint 17.2. I have a bash file I would like to run in terminal to login via SSH into my other mint 17.2 server. I am able to do this manually no problem, but when I try using the following script, it attempts to connect to the server, but then it just sits there at the password prompt.
#!/bin/bash
ssh mediaserver@mediaserver
expect "pasword:"
send "password\r"
not sure what to do here. Online help gets me no where so far.