Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I already have sshfs installed and I know how to mount the drive, but when I try to automatically supply the password it doesn't do anything different.

eric@MAVERICK:~$ sshfs ericfoss@ Downloads/folder/ < pass.txt
eric@'s password: 


share|improve this question

You should look into public key-based SSH authentication such that you don't need to supply a password to log into the machine.

Basically, you'd run ssh-keygen on the MAVERICK machine as "eric" and then copy the contents of the ~.ssh/ file that's created into


on the machine.

share|improve this answer

Try adding a newline (\n) in the file you are supplying (pass.txt) after the actual password.

If you type it on the command line you also supply a newline you see.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .