Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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@192.168.0.200:/home/ericfoss/Downloads Downloads/folder/ < pass.txt
eric@192.168.0.200's password: 
eric@MAVERICK:~$

Ideas?

share|improve this question
add comment

2 Answers

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

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

/home/ericfoss/.ssh/authorized_keys

on the 192.168.0.200 machine.

share|improve this answer
add comment

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
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.