I've got an "old" laptop running Lubuntu which i run Robotframework scripts on, connected to a raspberrypi (via ethernet cable).
The laptop has paramiko 2.7.1 and otherwise up to date python packages (let me know if you want versions of specific packages).
These tests include opening, connecting and executing commands via SSH.
There are zero problems with SSH outside robotframework test scripts and never had any instability with ssh.
When i run the robot script, it executes some commands (with Execute Command keywords) and checks if the commands are completed successfully.
More often than not, one or two of the 8 (even sometimes 4) tests fail because of the SSHLibrary exception SSHLibrary Exception: Timeout opening tunnel.
For now I've set up a script that automatically reruns the failed test cases and 99% of the time, the rerun test cases pass. I would however much rather have stable test cases.
Execute Command COMMAND timeout=10sbut it seems like this timeout is only for the keyword to complete and not the actual ssh connection timeout. Right now the timeout can be whatever while i test. How would i set the actuall ssh timeout?Library SSHLibrary 10 secondsyou can pass it as an argument to the library. Also you can set it when opening a connectionOpen Connection 192.168.1.1 timeout=5 min. And on the fly with theSet Client Configuration timeout=1 min.SSHException: No existing sessionbut i think that could be caused by the way the test case is setup (It's happening every 2/3 times it is run). I will let the test cases run continuously overnight and return with the findings here. Thank you!