Connect to a remote server using the first line of a file as the password, automatically accept unknown SSH keys, and launch a command
sshpass -f path/to/file ssh -o StrictHostKeyChecking=no user@hostname "command"