acerv / runltp-ng-original

Next-gen LTP runner
GNU General Public License v2.0
2 stars 3 forks source link

SSH protocol missing ability to tweak it #8

Closed asmorodskyi closed 2 years ago

asmorodskyi commented 2 years ago

Exactly needed support for two keys :

  1. UserKnownHostsFile=/dev/null
  2. StrictHostKeyChecking=no
acerv commented 2 years ago

By taking into account the following code: https://github.com/acerv/runltp-ng/blob/945196ca4b6814ce7efdb04afcf9c0be022d4ea5/ltp/ssh.py#L88

  1. UserKnownHostsFile=/dev/null can be implemented by self._client.load_system_host_keys() removal
  2. StrictHostKeyChecking=no can be implemented by self._client.set_missing_host_key_policy(MissingHostKeyPolicy())
acerv commented 2 years ago

Implemented by https://github.com/acerv/runltp-ng/commit/dffc14517881f1defc28adcd719d4e2ba24e8379 . Please @asmorodskyi let me know if feature is working properly.

acerv commented 2 years ago

Working https://openqa.suse.de/tests/9605397#step/accept01/1