I'm using sshpass to pass the password non-interactive on ubuntu 11.04.
when I use sshpass with scp
sshpass -p '123' scp sayuj@192.168.1.51:/home/sayuj/examples.desktop ~/Desktop/
it works fine
but it doesn't work with ssh
sshpass -p '123' ssh sayuj@192.168.1.51
What could be the problem and how do I fix it?
I found a solution:
The problem is that the new version of ssh client still has and old version of sshpass
(from 2008 not changed).
You can find the patch here
All that you need is just patch the sources (just 1 line add and 1 little change), compile, and install (don't forget to remove package before).