Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sshdriver: support selecting scp mode explicitly #1281

Merged
merged 3 commits into from
Oct 13, 2023

Commits on Oct 13, 2023

  1. Configuration menu
    Copy the full SHA
    f182247 View commit details
    Browse the repository at this point in the history
  2. driver/sshdriver: store OpenSSH version in cached property

    We will use the version multiple times and should not call ssh each time
    since we do not expect the ssh version to suddenly change while running
    labgrid.
    
    Signed-off-by: Enrico Jorns <[email protected]>
    ejoerns committed Oct 13, 2023
    Configuration menu
    Copy the full SHA
    2c062e3 View commit details
    Browse the repository at this point in the history
  3. driver/sshdriver: support selecting scp mode explicitly

    OpenSSH >= 9.0 defaults to the SFTP protocol.
    However, some older targets may only have scp installed.
    OpenSSH allows to explicitly select scp by providing the -O flag.
    
    As already done for the transition of SFTP, add a dedicated SSHDriver
    attribute named 'explicit_scp_mode' which defaults to 'False'.
    
    Signed-off-by: Enrico Jorns <[email protected]>
    ejoerns authored and Bastian-Krause committed Oct 13, 2023
    Configuration menu
    Copy the full SHA
    fbd0c8b View commit details
    Browse the repository at this point in the history