Commits

tundish  committed 65593e9

Modified ssh_args rendering to allow extra options to ssh

  • Participants
  • Parent commits 832504c

Comments (0)

Files changed (1)

File execnet/gateway_io.py

     args.extend(['-c', popen_bootstrapline])
     return args
 
+
 def ssh_args(spec):
-    remotepython = spec.python or 'python'
-    args = ['ssh', '-C' ]
-    if spec.ssh_config is not None:
-        args.extend(['-F', str(spec.ssh_config)])
-    remotecmd = '%s -c "%s"' %(remotepython, popen_bootstrapline)
-    args.extend([spec.ssh, remotecmd])
+    remotepython = spec.python or "python"
+    args = ["ssh", "-C" ] 
+    args.extend(spec.ssh.split())
+    remotecmd = '{} -c "{}"'.format(
+        remotepython, popen_bootstrapline)
+    args.append(remotecmd)
     return args
 
 
-
 def create_io(spec):
     if spec.popen:
         args = popen_args(spec)