Thanks for bringing this to my attention, definitely need to document this… (will update with a link later, once that is done).
So, there are a few scenarios that require different actions on behalf of the user. In cases where it’s possible, freckles will figure out what is necessary and prompt the user for it (e.g. running on localhost and needing sudo credentials will prompt for a sudo password). But in some cases that is not possible, so the user need to take appropriate steps.
If the machine you want to run on is localhost, the ‘-t jun@server…’ cli argument is not necessary (since ‘localhost’ is the default target). In this case the user who runs the job needs to be in the ‘sudoers’ group, and freckles will prompt for the sudo password if necessary.
If you want to run on a remote target, depending on how the remote ssh daemon is configured, and the permissions of the user you log in as (the part before the ‘@’) and whether passwordless sudo is configured for it, you might or might not have to use the
--ask-login-pass commandline-flag, like so:
frecklecute --ask-login-pass --target email@example.com static-site.frecklet
--ask-login-pass option requires the ‘sshpass’ application to be installed. You can either do that manually via the package manager of your choice, or, as freckles will prompt you, via:
(the latter is only supported on Debian/Ubuntu & Redhat-based systems though)
Let me know if you still have problems after this!
EDIT: here’s the link to the relevant documentation page (work in progess): https://freckles.io/doc/running_frecklets