I have a shell script authenticate.sh
that looks like
#!/bin/bash
sshpass -p '$1' ssh $2@localhost
I call it using
bash authenticate.sh password username
But I get "Permission denied, please try again" when I run it. If I instead run
#!/bin/bash
sshpass -p 'password' ssh user@localhost
it works...
Any help?