title: Using expect to pass a password to ssh
body: <p>How can I use expect to send a password to an ssh connection.</p>
  
  <p>say the password was p@ssword
  and the ssh command was
  ssh me@127.0.0.1</p>
  
  <p>What would I do with expect to a make it input the password when it says</p>
  
  <p>me@127.0.0.1's password:<br />
  ?</p>
  
  <p>The proper action of using an SSH key pair isn't an option because I would have to use ssh (scp) to put the key on the server, which would ask for a password.</p>