Configuring Password-Based Authentication for Job Submission in Open OnDemand

We would like to configure the Open OnDemand job submission workflow to use password-based authentication instead of public-private key authentication. Currently, the platform seems to default to public-private key-based mechanisms, and there is no prompt for users to provide their passwords during job submission.
Our desired workflow is as follows:

  1. Users submitting jobs through Open OnDemand should be prompted to enter their password.
  2. The authentication mechanism should respect the auth: password setting in the configuration.
  3. Any relevant configuration files or options should ensure password-based authentication is enforced without relying on public-private keys.

Here is my cluster.yml inside cluster.d directory-

---
v2:
  metadata:
    title: "HPC Cluster"
  login:
    host: "10.20.1.2"
    user: "%{user}"
    default: true
    auth: "password"
    forward_ssh_key: false
  job:
    submit_host: 'localhost'
    adapter: "slurm"
    cluster: "hpc-cluster"
    bin: "/opt/slurm/bin"
    conf: "/opt/slurm/etc/slurm.conf"
    strict_host_checking: false
    ssh:
      UsePAM: true
    auth: "password"
    forward_ssh_key: false

getting this error at the moment-

If you’re using localhost to submit jobs, you don’t need ssh. remove the submit_host: 'localhost' and we’ll use the command directly on the localhost.

ssh, auth and forward_ssh_key don’t do anything here.

Also hi and welcome!

1 Like

That seems to have done the trick!!
But if in future we decide to use a different host machine for submitting the job. Will it be possible to use password based authentication rather than pub-private key based?

No I don’t think so. You could use HostBasedAuthentication though.