You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Recently, a feature was added for using the SSH password set in the environment #246.
However, it may also be convenient to prompt the user to provide this variable if it is not set.
Proposed solution
Add the option prompt_sshpass: true for machine_user.yml1
Require that manual_sshpass: true if manual_sshpass: true
Upon starting the fabsim, if env.manual_sshpass and not env.env_sshpass and env.sshpass is empty, prompt the user for his SSH password and set the environment variable SSHPASS and env.env_sshpass accordingly (False if empty password submitted).
Connect to the machine
Motivation
Why may this be necessary?
When working with a remote system, where used to distribute user jobs to different clusters of which only some may require SSH password authentication on top of a public key, the former should probably not be stored on this system. While with #246 users can now set the password in the environment prior to launching the job, this requires that they know the selected machine requires a password. It is thus much more convenient (and does not compromise security) to prompt the user to enter the password when starting a task on a machine which has been set up with this requirement.
Footnotes
Perhaps default to true if env.manual_sshpass which would require making sshpass optional and updating the corresponding comment in machines.yml↩
The text was updated successfully, but these errors were encountered:
As far as I understand SSH multiplexing, this would be useful if I'm in an environment where
A) Users at least occasionally log in manually at the target machine
B) Any user sends tasks to the target machine regularly (within ControlPersist)
This may not be the case in my scenario, where the machine may be used very infrequently and its authentication requirements vary from that of other machines.
Context
Recently, a feature was added for using the SSH password set in the environment #246.
However, it may also be convenient to prompt the user to provide this variable if it is not set.
Proposed solution
prompt_sshpass: true
formachine_user.yml
1manual_sshpass: true
ifmanual_sshpass: true
env.manual_sshpass
andnot env.env_sshpass
andenv.sshpass
is empty, prompt the user for his SSH password and set the environment variableSSHPASS
andenv.env_sshpass
accordingly (False
if empty password submitted).Motivation
Why may this be necessary?
When working with a remote system, where used to distribute user jobs to different clusters of which only some may require SSH password authentication on top of a public key, the former should probably not be stored on this system. While with #246 users can now set the password in the environment prior to launching the job, this requires that they know the selected machine requires a password. It is thus much more convenient (and does not compromise security) to prompt the user to enter the password when starting a task on a machine which has been set up with this requirement.
Footnotes
Perhaps default to true if
env.manual_sshpass
which would require makingsshpass
optional and updating the corresponding comment inmachines.yml
↩The text was updated successfully, but these errors were encountered: