job:ssh#
Open an SSH session to the head node of the cluster where a job is currently running.
This command works only on Linux and macOS and only if you have added an SSH key to your account.
Hint
As an alternative to running this command, you can run SSH directly from the command line on any operating system.
Usage
horizon job:ssh [options]
Examples
# Connect to the cluster running a job
horizon job:ssh --job="f9jfgvcd77py"
# Connect with X11 forwarding enabled
horizon job:ssh --job="f9jfgvcd77py" --x11
Options
This command supports the general CLI options in addition to those listed below.
--job=JOB_ID, -j JOB_IDThe ID of the running job to which you want to connect. To get the job ID, run job:list or navigate to Jobs > Job Details in the web interface. If you omit this option, you will be prompted to select a running job.
--x11, -XEnable X11 forwarding for graphical applications. You can use this option if you need to run a graphical application, such as gnuplot, on the cluster.