Skip to content

SSH target connection issue #442

@douglas-raillard-arm

Description

@douglas-raillard-arm

Upon connecting to an SSH target, this exception is raised:

  File "testtarget.py", line 16, in <module>
    target = Target(kind='linux', host='myip', username='myuser', password='mypassword'),
  File "/home/dourai01/Data/Git/lisa/repo/lisa/target.py", line 270, in __init__
    self.target = self._init_target(
  File "/home/dourai01/Data/Git/lisa/repo/lisa/target.py", line 637, in _init_target
    target.connect(check_boot_completed=wait_boot, timeout=wait_boot_timeout)
  File "/home/dourai01/Data/Git/lisa/repo/external/devlib/devlib/target.py", line 267, in connect
    self._resolve_paths()
  File "/home/dourai01/Data/Git/lisa/repo/external/devlib/devlib/target.py", line 1074, in _resolve_paths
    self.working_directory = self.path.join(self.execute("pwd").strip(), 'devlib-target')
  File "/home/dourai01/Data/Git/lisa/repo/external/devlib/devlib/target.py", line 399, in execute
    return self.conn.execute(command, timeout=timeout,
  File "/home/dourai01/Data/Git/lisa/repo/external/devlib/devlib/utils/ssh.py", line 223, in execute
    raise TargetStableError(
devlib.exception.TargetStableError: cannot split reply (target misconfiguration?):

It seems that the output of any command is just \r\r rather than being the actual output, but the command is still being executed (checked with touch foobar).

Versions:
OpenSSH_8.1p1, OpenSSL 1.1.1d 10 Sep 2019
devlib commit: c212ef2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions