diff --git a/batchspawner/batchspawner.py b/batchspawner/batchspawner.py index 8b3b8093..1a7aa390 100644 --- a/batchspawner/batchspawner.py +++ b/batchspawner/batchspawner.py @@ -901,7 +901,7 @@ class CondorSpawner(UserEnvMixin,BatchSpawnerRegexStates): # outputs job data XML string batch_query_cmd = Unicode('condor_q {job_id} -format "%s, " JobStatus -format "%s" RemoteHost -format "\n" True').tag(config=True) batch_cancel_cmd = Unicode('condor_rm {job_id}').tag(config=True) - connect_to_job_cmd = Unicode("condor_ssh_to_job -ssh \"ssh -L {port}:localhost:{port} -oExitOnForwardFailure=yes\" {job_id}").tag(config=True) + connect_to_job_cmd = Unicode("condor_ssh_to_job -ssh \"ssh -L {port}:localhost:{rport} -oExitOnForwardFailure=yes\" {job_id}").tag(config=True) # job status: 1 = pending, 2 = running state_pending_re = Unicode(r'^1,').tag(config=True) state_running_re = Unicode(r'^2,').tag(config=True)