File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ This is a pure SSH backend using the ``ssh`` command. Example::
66
66
$ py.test --ssh-config=/path/to/ssh_config --hosts='ssh://server'
67
67
$ py.test --ssh-identity-file=/path/to/key --hosts='ssh://server'
68
68
$ py.test --hosts='ssh://server?timeout=60&controlpersist=120'
69
-
69
+ $ py.test --hosts='ssh://server' --ssh-extra-args='-o StrictHostKeyChecking=no'
70
70
71
71
By default timeout is set to 10 seconds and ControlPersist is set to 60 seconds.
72
72
You can disable persistent connection by passing `controlpersist=0 ` to the options.
Original file line number Diff line number Diff line change @@ -59,6 +59,12 @@ def pytest_addoption(parser):
59
59
dest = "ssh_config" ,
60
60
help = "SSH config file" ,
61
61
)
62
+ group .addoption (
63
+ "--ssh-extra-args" ,
64
+ action = "store" ,
65
+ dest = "ssh_extra_args" ,
66
+ help = "SSH extra args" ,
67
+ )
62
68
group .addoption (
63
69
"--ssh-identity-file" ,
64
70
action = "store" ,
You can’t perform that action at this time.
0 commit comments