SSH to Job Configuration Options
These macros affect how HTCondor deals with condor_ssh_to_job, a tool that allows users to interactively debug jobs. With these configuration variables, the administrator can control who can use the tool, and how the ssh programs are invoked. The manual page for condor_ssh_to_job is at condor_ssh_to_job.
- ENABLE_SSH_TO_JOB¶
A boolean expression read by the condor_starter, that when
Trueallows the owner of the job or a queue super user on the condor_schedd where the job was submitted to connect to the job via ssh. The expression may refer to attributes of both the job and the machine ClassAds. The job ClassAd attributes may be referenced by using the prefixTARGET., and the machine ClassAd attributes may be referenced by using the prefixMY.. WhenFalse, it prevents condor_ssh_to_job from starting an ssh session. The default value isTrue.- SCHEDD_ENABLE_SSH_TO_JOB¶
A boolean expression read by the condor_schedd, that when
Trueallows the owner of the job or a queue super user to connect to the job via ssh if the execute machine also allows condor_ssh_to_job access (see ENABLE_SSH_TO_JOB). The expression may refer to attributes of only the job ClassAd. WhenFalse, it prevents condor_ssh_to_job from starting an ssh session for all jobs managed by the condor_schedd. The default value isTrue.- SSH_TO_JOB_<SSH-CLIENT>_CMD¶
A string read by the condor_ssh_to_job tool. It specifies the command and arguments to use when invoking the program specified by
<SSH-CLIENT>. Values substituted for the placeholder<SSH-CLIENT>may be SSH, SFTP, SCP, or any other ssh client capable of using a command as a proxy for the connection to sshd. The entire command plus arguments string is enclosed in double quote marks. Individual arguments may be quoted with single quotes, using the same syntax as for arguments in a condor_submit file. The following substitutions are made within the arguments:%h: is substituted by the remote host %i: is substituted by the ssh key %k: is substituted by the known hosts file %u: is substituted by the remote user %x: is substituted by a proxy command suitable for use with the OpenSSH ProxyCommand option %%: is substituted by the percent mark character
The default string is:"ssh -oUser=%u -oIdentityFile=%i -oStrictHostKeyChecking=yes -oUserKnownHostsFile=%k -oGlobalKnownHostsFile=%k -oProxyCommand=%x %h"When the
<SSH-CLIENT>is scp, %h is omitted.- SSH_TO_JOB_SSHD¶
The path and executable name of the ssh daemon. The value is read by the condor_starter. The default value is
/usr/sbin/sshd.- SSH_TO_JOB_SSHD_ARGS¶
A string, read by the condor_starter that specifies the command-line arguments to be passed to the sshd to handle an incoming ssh connection on its
stdinorstdoutstreams in inetd mode. Enclose the entire arguments string in double quote marks. Individual arguments may be quoted with single quotes, using the same syntax as for arguments in an HTCondor submit description file. Within the arguments, the characters %f are replaced by the path to the sshd configuration file, and the characters %% are replaced by a single percent character. The default value is the string “-i -e -f %f”.- SSH_TO_JOB_SSHD_CONFIG_TEMPLATE¶
A string, read by the condor_starter that specifies the path and file name of an sshd configuration template file. The template is turned into an sshd configuration file by replacing macros within the template that specify such things as the paths to key files. The macro replacement is done by the script
$(LIBEXEC)/condor_ssh_to_job_sshd_setup. The default value is$(LIB)/condor_ssh_to_job_sshd_config_template.- SSH_TO_JOB_SSH_KEYGEN¶
A string, read by the condor_starter that specifies the path to ssh_keygen, the program used to create ssh keys.
- SSH_TO_JOB_SSH_KEYGEN_ARGS¶
A string, read by the condor_starter that specifies the command-line arguments to be passed to the ssh_keygen to generate an ssh key. Enclose the entire arguments string in double quotes. Individual arguments may be quoted with single quotes, using the same syntax as for arguments in an HTCondor submit description file. Within the arguments, the characters %f are replaced by the path to the key file to be generated, and the characters %% are replaced by a single percent character. The default value is the string “-N ‘’ -C ‘’ -q -f %f -t rsa”. If the user specifies additional arguments with the command condor_ssh_to_job -keygen-options, then those arguments are placed after the arguments specified by the value of SSH_TO_JOB_SSH_KEYGEN_ARGS.