avocado-framework / avocado-vt

Avocado VT Plugin
https://avocado-vt.readthedocs.org/
Other
83 stars 243 forks source link

Add support for OpenSSH on Windows #3381

Open samiraguiar opened 2 years ago

samiraguiar commented 2 years ago

Is there any plans to add support for the official port of OpenSSH for Windows? https://github.com/PowerShell/Win32-OpenSSH

It can possibly replace rss.exe altogether and provide a more unified interface for remote connections. It also has benefits over rss.exe as it provides a full shell experience with support for line buffering and editing of typed characters.

I quickly tested and right now the biggest blocker is that the prompt string is not matched by aexpect (it also contains some junk data), but it did seem promising.

Once the installer was in winutils.iso, I only needed to add the following to the answer file:

<SynchronousCommand wcm:action="add">
    <CommandLine>%WINDIR%\System32\cmd /c start /wait msiexec.exe /i "E:\OpenSSH-x64-v8.9.msi"</CommandLine>
    <Order>20</Order>
 </SynchronousCommand>
pevogam commented 2 years ago

Very good idea, @luckyh do we know of maintainers on our side that do any sort of support for the various Windows components and vms in Avocado VT?

luckyh commented 2 years ago

Very good idea, @luckyh do we know of maintainers on our side that do any sort of support for the various Windows components and vms in Avocado VT?

@pevogam I can take a look at this issue. However I don't know about the workflow of updating the winutils.iso image, maybe you can ask the ones who modified the file below in the past?

https://github.com/avocado-framework/avocado-vt/blame/master/virttest/shared/downloads/winutils.ini

luckyh commented 2 years ago

The proposal sounds very reasonable to me, and next I think we can do some check on this tool to get know about its performability, reliability, scalability and etc..