labgrid-project / labgrid

Embedded systems control library for development, testing and installation
https://labgrid.readthedocs.io/
Other
343 stars 177 forks source link

util/ssh: Enable StrictHostKeyChecking SSH option #1549

Open onurcelep opened 2 days ago

onurcelep commented 2 days ago

Description Enables setting StrictHostKeyChecking option for SSH client by introducing LG_SSH_STRICT_HOST_KEY_CHECKING environment variable.

Checklist

jluebbe commented 2 days ago

StrictHostKeyChecking is already enabled for connections to exporters. Why would you want to disable that?

onurcelep commented 2 days ago

StrictHostKeyChecking is already enabled for connections to exporters. Why would you want to disable that?

by "Enable" I mean being able to modify it :) In my setup exporter runs on a gateway device paired (1-on-1) with device under test (there is an isolated network between), coordinator also hosted on a separate server. When I try to reach video stream through dockerized exporter it throws strictHostKeyChecking error for exporter host, meaning I would need to add exporter hosts for each pair to my ssh config.