1
0
mirror of https://github.com/ARM-software/devlib.git synced 2025-09-01 17:41:54 +01:00

Add options to ssh connection

The user can pass a dictionary containg the key and value
pairs with the extra ssh configuration options. Multiple
options will be passed as '-o key1=value1 -o key2=value2'

Signed-off-by: Michalis Spyrou <michalis.spyrou@arm.com>
This commit is contained in:
Michalis Spyrou
2019-11-21 11:06:06 +00:00
committed by Marc Bonnici
parent 0e6280ae31
commit 0fa91d6c4c
2 changed files with 42 additions and 7 deletions

View File

@@ -119,7 +119,7 @@ Connection Types
.. class:: SshConnection(host, username, password=None, keyfile=None, port=None,\
timeout=None, password_prompt=None, \
sudo_cmd="sudo -- sh -c {}")
sudo_cmd="sudo -- sh -c {}", options=None)
A connection to a device on the network over SSH.
@@ -145,6 +145,7 @@ Connection Types
``sshpass``. Set this if your version of ``sshpass``
uses something other than ``"[sudo] password"``.
:param sudo_cmd: Specify the format of the command used to grant sudo access.
:param options: A dictionary with extra ssh configuration options.
.. class:: TelnetConnection(host, username, password=None, port=None,\